Удалить все display
свойства, назначенные:
<table>, <thead>, <tbody>, <th>, <td>, <tfoot>, <tr>
Узлы таблицы имеют свое собственное поведение и предназначены для блокировки в пределах тега <table>
.
Демо
.container {
margin: 20px 0;
}
table {
width: 100%;
}
tbody {
overflow-y: scroll;
}
th,
td {
max-width: 22%;
}
fieldset.btn-group.btn-group.btn-group {
display: inline-block;
margin: 1em 0;
cursor: pointer
}
.textTrunc {
position: relative;
}
.text-truncate {
position: absolute;
top: 0em;
max-width: 24%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
'
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.1/css/bootstrap.min.css" />
<main class='container'>
<section class="row">
<div class="col-md-12">
<fieldset class="btn-group ">
<input type="button" class="btn.btn btn-primary addnew" value="ADD">
<input type="button" class="btn.btn btn-danger" value="DEL">
</fieldset>
<section class="scrollable">
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>
<input type="checkbox" ng-model="selectedAll" ng-click="checkAll()" />
</th>
<th>JobGroupName</th>
<th>Start Date</th>
<th>End Date</th>
</tr>
</thead>
<tbody>
<tr>
<td class='textTrunc'>
<div class='text-truncate text-nowrap'>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis
aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
</td>
<td class='textTrunc'>
<div class='text-truncate text-nowrap'>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis
aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
</td>
<td class='textTrunc'>
<div class='text-truncate text-nowrap'>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis
aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
</td>
<td class='textTrunc'>
<div class='text-truncate text-nowrap'>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis
aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
</td>
</tr>
</tbody>
</table>
</section>
<fieldset class="btn-group float-right">
<button type="submit" class="btn btn-primary">Submit</button>
<button type="button" class="btn btn-success">Initiate Lambda</button>
</fieldset>
</div>
</section>
</main>