I'm trying to create a table in CSS that's a fixed height with y-scrolling properties. The only problem is when i set:
display: block;
then:
width: 100%;
doesn't work anymore.
<table class="table table-hover table-bordered table-condensed">
<thead style="display: block;">
<tr>
<th style="text-align: center; width: 100%;"> <!-- THIS DOESN'T WORK -->
PLAYS
</th>
</tr>
</thead>
<tbody style="display: block; overflow-y: auto;" height="465px;">
<tr ng-repeat="play in playsArray" ng-click="onSelectPlayTableClick(play)" ng-class="{'tr-rcsorange-selected': play.Selected == true}" style="cursor:pointer;">
<td>{{play.PlayDescription}}</td>
</tr>
</tbody>
</table>