How to make table width adaptive? That means, if there is enough room, make it 100%; if the table is too wide and it is clipped, make it auto so that the table columns will not be clipped.
<div>
<table class="adaptive-table">
</table>
</div>
Is there a way using CSS? Thanks