Disclaimer: I am not really familiar with CSS. I am using overflow: hidden to truncate text on dynamic Bootstrap tabs. When a second tab is created, all the tabs move up slightly because of the padding underneath. I'm trying to get rid of the extra padding because the bottom border appears when all the elements get moved up. I did some Googling, but using vertical align bottom or top does not eliminate the gap. I don't know if this has anything to do with it, but there is also a margin-bottom: -1px in order to hide the bottom border to get the effect of a connected tab.
I want it to look like how it looks without overflow:hidden checked.
unwanted space with overflow hidden
<div class=container-fluid" id="dashboard">
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href="#overall-statistics" role="tab" aria-controls="Overall Statistics"><span>Overall Statistics</span></a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="overall-statistics" role="tabpanel">
<table>
<tr>
<td style="padding: 10px;">
View by
</td>
<td style="padding: 10px;">
<select class="selectpicker" id="view-by" multiple title="Levels">
<option id="view-levels">Levels</option>
<option id="view-store-type">Store Type</option>
</select>
</td>
</tr>
</table>
</div>
</div>
<div class="tab-pane" id="messages" role="tabpanel">...</div>
<div class="tab-pane" id="settings" role="tabpanel">...</div>
</div>
.nav-tabs .nav-item {
margin-left: -1px;
width: 150px;
}
.nav-tabs .nav-link {
width: 150px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: bottom;
}