I have a table using display:block
for thead
and tbody
. if the data in <td>
increases, the <th>
also needs to increase the width but now it won't works like that....Because of display:block
...How to fix this? any suggestions please!
Here I have tried css:
table thead,table tbody {
display: block;
}
table tbody {
overflow-x: hidden;
overflow-y: scroll;
min-height: 90px;
max-height: 300px;
}
td, th {
width: auto;
}