What is the best way to adjust the width of a div
containing a potentially wider-than-screen table
? Despite setting padding: 10px
for the div
, the right padding disappears when the table exceeds the screen width.
Below is an example code snippet:
<div class="panel-body">
<table class="table table-hover table-bordered"></table>
</div>