Hi all, I have 5 div’s within a container div and i want them all to be the same size, so i have specified that they are 20% width each. This is perfect. But 1 or 2 of these div elements could be set to invisible by my aspx code, so how can i get the div elements to automatically resize there width if 1 or 2 of the divs are not visible???
Here is my code at the moment
<div class=’container’>
<div class=’item’><img src=’path’ /></div>
<div class=’item’><img src=’path’ /></div>
<div class=’item’><img src=’path’ /></div>
<div class=’item’><img src=’path’ /></div>
<div class=’item’><img src=’path’ /></div>
</div>
css code is
.container { float:left;width:100%}
.item { float:left;width:20% }
Thanks in advance!