I have valid XHTML and CSS which won't work in MSIE 6.0.
January 4, 2004 9:33 PM   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 answers 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


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


« Older Fix for Audio Being Out of Sync with Video on...   |   Nurse's Codes? Newer »
This thread is closed to new comments.