Quote:
|
<div style="float: left; width: 100px; height: 170px; margin: 10px; border: 1px solid rgb(204, 204, 204); background-color: rgb(230, 230, 230);"></div>
|
First of all get rid of all inline styles, which may make debugging harder. use something like
Code:
<div id="wrapper">
<div></div>
<div></div>
<div></div>
<div></div>
........
</div>
Code:
/*CSS file */
#wrapper{
width: 80%; height: 200px; padding-left: 185px; display: block; overflow: visible;
}
#wrapper div{
float:left; width:100px; height:170px; margin:10px; border:#CCC 1px solid; background-color:#e6e6e6;
}
Now, add a
valid DOCTYPE at the top, without this, IE may turn into quirks mode. I'd recommend an HTML Strict one.
After that, add
Code:
*{margin:0;padding:0;}
into your CSS to remove all browser specific default values of margins and paddings from all elements.
If that doesn't fix the issue, please update the link and let's know.
PS: Since the wrapper doesn't have a fixed width, it may push the inner divs down to the next row, when the window width is reduced to 8x(100+10+10)