FridayRain Posted September 12, 2007 Share Posted September 12, 2007 I've Googled, found a fix or two, and nothing seems to work. I can't wait for IE6 to die a horrible death. What you're seeing is a container div with three subcontainers inside: top, middle, bottom. Inside the top and bottom divs are three more divs: one for the left corner rounded edge, one for the middle filler, and one for the right rounded edge. The corner divs use a background graphic, and are floated left or right. The middle subcontainer is just the main background color. It is my understanding that this 3px spacer "bug" only happens with floated divs, but maybe it's not. I found this: /* hide from Mac \*/ * html .chain1 { margin-right: -3px; display: inline; } * html .chain2 {margin-left: 0;} /* end hide */ But it didn't work. I applied it to several different divs and such and the space remained. Any other ideas? I'm sure this is a common problem. I really don't want to scrap my rounded corners and find a completely new way to do them. I don't like being able to highlight them on the page, nor do I like being able to right-click them. I like having them "below the surface" if you will. The first image is a dig with IE6. The second is with Firefox. [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/69031-solved-ie6s-stupid-3px-div-spacing/ Share on other sites More sharing options...
ToonMariner Posted September 12, 2007 Share Posted September 12, 2007 A golden oldie!!! http://www.positioniseverything.net/explorer/threepxtest.html Quote Link to comment https://forums.phpfreaks.com/topic/69031-solved-ie6s-stupid-3px-div-spacing/#findComment-347038 Share on other sites More sharing options...
FridayRain Posted September 12, 2007 Author Share Posted September 12, 2007 I've come across that page numerous times. As far as I can tell, it doesn't apply to me, but rather focuses on text, which is not involved in mine. Quote Link to comment https://forums.phpfreaks.com/topic/69031-solved-ie6s-stupid-3px-div-spacing/#findComment-347071 Share on other sites More sharing options...
FridayRain Posted September 12, 2007 Author Share Posted September 12, 2007 Anyone else have an idea? Quote Link to comment https://forums.phpfreaks.com/topic/69031-solved-ie6s-stupid-3px-div-spacing/#findComment-347357 Share on other sites More sharing options...
FridayRain Posted September 13, 2007 Author Share Posted September 13, 2007 No one else? Quote Link to comment https://forums.phpfreaks.com/topic/69031-solved-ie6s-stupid-3px-div-spacing/#findComment-347773 Share on other sites More sharing options...
FridayRain Posted September 14, 2007 Author Share Posted September 14, 2007 No one else has ever run into this problem? Quote Link to comment https://forums.phpfreaks.com/topic/69031-solved-ie6s-stupid-3px-div-spacing/#findComment-348133 Share on other sites More sharing options...
Azu Posted September 15, 2007 Share Posted September 15, 2007 I think there are ways to make rounded corners and stuff in CSS now, without any kind of images of javascript or anything. Try googling around a bit. Quote Link to comment https://forums.phpfreaks.com/topic/69031-solved-ie6s-stupid-3px-div-spacing/#findComment-349274 Share on other sites More sharing options...
TheFilmGod Posted September 17, 2007 Share Posted September 17, 2007 I think there are ways to make rounded corners and stuff in CSS now, without any kind of images of javascript or anything. Try googling around a bit. Yes that's called CSS3 beta. I heard FF already has put that in version 2.0 but of course IE6 doesn't have it! Duh! Um, why don't you just make that whole thing one simple background image? Is saving 2 kb worth your headaches and hard work? Or, use absolute positiong, - in a nested div tag that is relative or static (ly) positioned. Quote Link to comment https://forums.phpfreaks.com/topic/69031-solved-ie6s-stupid-3px-div-spacing/#findComment-349862 Share on other sites More sharing options...
Azu Posted September 17, 2007 Share Posted September 17, 2007 Yes that's called CSS3 beta.Ya so just use that now. No need to use images anymore. Anyone that uses IE6/IE5/IE4 can rot in hell :> Quote Link to comment https://forums.phpfreaks.com/topic/69031-solved-ie6s-stupid-3px-div-spacing/#findComment-350196 Share on other sites More sharing options...
FridayRain Posted September 17, 2007 Author Share Posted September 17, 2007 I really want to use images though. My corners aren't just rounded. They have a gradient that I really like using. Looks great in Firefox. If I add POSITION: ABSOLUTE; to .tlw, the 3px gap disappears, but I can't say the same for .trw. What needs to change in my CSS? .topwindow { width: 100%; height: 22px; background: #transparent; } .tlw { float: left; width: 22px; height: 22px; background: url(graphics/window/tl.gif); } .trw { float: right; width: 22px; height: 22px; background: url(graphics/window/tr.gif); } .topfillw { height: 22px; background: url(graphics/window/topfill.gif); } <div class="topwindow"> <div class="tlw"></div> <div class="trw"></div> <div class="topfillw"></div> </div> Quote Link to comment https://forums.phpfreaks.com/topic/69031-solved-ie6s-stupid-3px-div-spacing/#findComment-350200 Share on other sites More sharing options...
FridayRain Posted September 17, 2007 Author Share Posted September 17, 2007 I suppose I could make the top and bottom one image since the div has a fixed width. I'll think about it. Quote Link to comment https://forums.phpfreaks.com/topic/69031-solved-ie6s-stupid-3px-div-spacing/#findComment-350202 Share on other sites More sharing options...
FridayRain Posted September 17, 2007 Author Share Posted September 17, 2007 Yep, that solved it. I combined the three separate images into one whole one, and now it looks fine in IE6. Why did I think I needed to do it in three separate parts? Eesh. Quote Link to comment https://forums.phpfreaks.com/topic/69031-solved-ie6s-stupid-3px-div-spacing/#findComment-350215 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.