SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: IE extra width between div ?
Hybrid View
-
Sep 22, 2004, 15:28 #1
- Join Date
- Sep 2004
- Location
- Savannah
- Posts
- 5
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
IE extra width between div ?
OK,
I have added the Box Model Hack, Holly Hack, and the whitespace hack.
It looks as if IE 6 is still adding 3px of space between the #leftcolumn div and the #center2 div.
any ideas?Last edited by btoler; Sep 23, 2004 at 08:28.
-
Sep 23, 2004, 08:16 #2
- Join Date
- Jan 2003
- Location
- Hampshire UK
- Posts
- 40,556
- Mentioned
- 183 Post(s)
- Tagged
- 6 Thread(s)
Hi,
Yes its the 3 pixel jog againhave a look at the FAQ on floats for a full explanation but heres the fix:
Code:#leftcolumn { float: left; margin: 0px; padding: 0px; width: 175px; } * html #leftcolumn {margin-right:-3px}/*3 pixel jog*/ #center2 { margin: 0px; margin-left: 179px; padding: 0px; } * html #center2{margin-left:176px}/* ie adds 3 pixels back on*/
-
Sep 23, 2004, 08:30 #3
- Join Date
- Sep 2004
- Location
- Savannah
- Posts
- 5
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Worked perfectly
Thanks for the help!
Bookmarks