I need to set a div's width dynamic, because I have a dynamic table inside that div, and when it has too many columns, I can't scroll horizontally with the bottom bar (not the DIV's one, the browser's one).
I've got this in my HTML file:
<div class="total">
<table border="1">
<tr>
<td>row 1, cell 1</td>
...
<td>row 1, cell m</td>
</tr>
<tr>
<td>row 2, cell 1</td>
...
<td>row 2, cell m</td>
</tr>
...
<tr>
<td>row n, cell 1</td>
...
<td>row n, cell m</td>
</tr>
</table>
</div>
and I have this in my css:
.total{
position:relative;
top:50px;
margin: 0 auto;
background-color:#eeeeee;
height:auto;
width:auto;
border:2px solid #000;
border-color:rgb(82,115,154);
overflow: hidden;
}
Here there is a link with an example of what I'm doing:
How can I set the "total" div's width dynamic? This must work on IE7 Browser.