I get this problem come up sometimes my divs to not behave as expected. What I want is for them to 'flow' layout as I understand they should however they are not I just wondered why not. I have used firebug to inspect the css and there doesn't seem to be anything out of the norm that they are picking up yet they don't flow one after the other.
I have supplied two sets of code one in a test site that is rendering correctly and then the problematic page.
Code for divs:
<div style="border:solid 1px #c9c9c9; width:100px; height:100px; float:left;">
sss
</div>
<div style="border:solid 1px #c9c9c9; width:100px; height:100px; left:20px; position:realtive;">
2
</div>
Pic Of Divs Flowing:
Pic Of Divs Not Flowing
Anybody know how to get them to behave as expected? Its worth pointing out that if I put a float:left in the second div this sorts the problem but then it means that the next div doesn't drop down to the next line properly....
Hope someone can help, much appreciated