ladydi1984
09-06-2010, 01:39 PM
I've *finally* converted my website from table layout to CSS:
http://www.sparklements.com/problem.html
The problem I'm having is with the rows of items. I've just put a line of divs and let them wrap according to your browser size, thus filling up your browser rather than having lots of white space (if there's a better/more correct way of doing this please let me know!) In Firefox it looks just like I want, but in IE (I'm using v7) it only shows 6 divs per row resulting in 8 rows.
Code for the main center div is:
<div style="width:80%; height:200px; padding-left:185px; display:block; overflow:visible;">
Code for the individual items is:
<div style="float:left; width:100px; height:170px; margin:10px; border:#CCC 1px solid;">item 1</div>
<div style="float:left; width:100px; height:170px; margin:10px; border:#CCC 1px solid;">item 2</div>
<div style="float:left; width:100px; height:170px; margin:10px; border:#CCC 1px solid;">item 3</div>Etc...
Is there any way to get the page in IE to look like it does in Firefox?
Many thanks
di
http://www.sparklements.com/problem.html
The problem I'm having is with the rows of items. I've just put a line of divs and let them wrap according to your browser size, thus filling up your browser rather than having lots of white space (if there's a better/more correct way of doing this please let me know!) In Firefox it looks just like I want, but in IE (I'm using v7) it only shows 6 divs per row resulting in 8 rows.
Code for the main center div is:
<div style="width:80%; height:200px; padding-left:185px; display:block; overflow:visible;">
Code for the individual items is:
<div style="float:left; width:100px; height:170px; margin:10px; border:#CCC 1px solid;">item 1</div>
<div style="float:left; width:100px; height:170px; margin:10px; border:#CCC 1px solid;">item 2</div>
<div style="float:left; width:100px; height:170px; margin:10px; border:#CCC 1px solid;">item 3</div>Etc...
Is there any way to get the page in IE to look like it does in Firefox?
Many thanks
di