0
I have a table with style="overflow: auto;
, only that the scroll is down there, almost 1 finger away from the table.
<div style="overflow: scroll; height: 240px; width: 1000px;">
<table border="1" class="table table-bordered" id="tabela" style="background-color: white;">
<tr>
<h5>Usuários</h5>
</tr>
<tr>
<th>Nome</th>
<th>Nome</th>
</tr>
<tr>
<td>João</td>
<td>Maria</td>
</tr>
<?php endwhile; ?>
</table>
</div>
Follow the print:
But it’s not just diminishing the height of the div??
– LeAndrade
No, the table is down, but the scroll is down there yet.
– Victor Teixeira
If only to 'take off' the scroll when it is not necessary
overflow: auto
(you are usingscroll
)– Oeslei
Do you want to keep the scroll horizontal? There is a need for it?
– Denys Xavier
There’s no need for the horizontal, it’s there to be.
– Victor Teixeira
And I need to leave the table at that height size
– Victor Teixeira