Advertise here: Contact FM.


I have valid XHTML and CSS which won't work in MSIE 6.0.
January 4, 2004 9:33 PM   RSS feed for this thread Subscribe

For some unknown reason, my validating XHTML and CSS is totally broken in MSIE 6.0.. the text doesn't always appear, and will only show up if you minimize the browser and maximize it, or if you scroll down and then back up. This problem is driving me batty! I checked the css-discuss wiki and archives for answers, but no joy.
posted by xyzzy to computers & internet (9 comments total)
This is just a guess, but IE has some pretty nasty bugs with floats. I actually encountered the exact same bug that it looks like is afflicting your page: text running alongside a floated image, with an element after the image with the style "clear: [whatever side the image is on]". Specifically, your <br style="clear: both" /> tags.

I didn't actually try fixing your page, though, so I may be way off.
posted by Khalad at 10:47 PM on January 4, 2004


Looks to me like it's a float issue too. If you get no more specific help here, a good place to ask such questions is the css-discuss list, with which you're obviously already familiar...
posted by cbrody at 5:00 AM on January 5, 2004


Peek-a-boo?
posted by cedar at 5:49 AM on January 5, 2004


Try taking the "position: relative" off the floated imagery. I don't see what it's doing and that sometimes throws IE into a tizzy.
posted by yerfatma at 5:50 AM on January 5, 2004


I fixed this problem by adding a "line-height" declaration to a parent element above the affected block. Don't ask me why it works, but it does.
posted by brownpau at 7:37 AM on January 5, 2004


(Hierarchically above, not positionally.)
posted by brownpau at 7:39 AM on January 5, 2004


I think IE (wrongly) doesn't reserve any space for the relatively-positioned, floated elements (here, the imagery. So line-height might offset this. "clear: both" on the element after the image might do the same (all stated without reviewing the code again).
posted by yerfatma at 8:13 AM on January 5, 2004


Seconding brownpau's fix (which I got via the same link that cedar posted above). It works.
posted by filmgoerjuan at 8:36 AM on January 5, 2004


Ahhh. Thank you all so much.
posted by xyzzy at 10:06 AM on January 5, 2004


« Older When I record video on my Niko...   |   You know the chart they hang o... Newer »
This thread is closed to new comments.


Related Questions
What should I learn in order to do web development? October 15, 2008
Are there any other coding nerds out there? July 3, 2008
Semantic markup and the world wide web: non-noob... December 22, 2007
How can I strip out extraneous CSS rules from my... July 28, 2007
Most useful CSS related resources? June 2, 2006