1
Galley is possible to determine a maximum and minimum size for a table?
My problem and the next, I have a table with a text inside it, and when I decrease the size of the window of the navigate everything gets squeezed inside it.
I touched that the problem only occurs if I use width: 100%; because if I use width: 400px; the table does not flatten its contents, but generates a scroll bar, and that’s exactly what I want.
Good follows the simple code of the table. If anyone knows any way to help me I am very grateful.
.layout_geral_fixo {
position: fixed;
width: 100%;
border-spacing: 0;
border-collapse: collapse;
background: #484848;
z-index: 6;
height: 37px;
}
<table class="layout_geral_fixo">
<!-- Menu topo -->
<tr>
<td>
asasdasdasdasdasdasdasdasdasdasdasdasdasdasd asdasdasdasdasdasdasd
</td>
</tr>
<!-- FIM Menu topo -->
</table>
have tried
white-space: nowrap
? only the notorious scrollbar will not appear.– Tobias Mesquita
already yes, I just don’t know if I did it correctly, have you make an example in my code? posted it in the link
– Hugo Borges
https://jsfiddle.net/9zecwuyt/3/
– Tobias Mesquita
in any case, before continuing to use Tables to assemble your layout, read this: https://www.hotdesign.com/seybold/everything.html
– Tobias Mesquita
worked, so for layout I always use div and css, but as it comes to a simple report layout I prefer to use the table
– Hugo Borges
how can I use white_space in div? look at the menu that matches:https://jsfiddle.net/9zecwuyt/4/
– Hugo Borges
A tip: Always put the code inside the question.
– Guilherme Nascimento