Thursday, March 02, 2006

Disappearing text or images in IE?

This has been annoying me all day, every time I viewed a certain page on a site i was creating the text disppeared until i scrolled up or down. Found the following solution:

IE has a very strange bug where text or background images sometimes disappears from sight. These items are still actually there, and if you highlight everything on screen or hit refresh they'll often re-appear. Kind of strange, huh?

This problem mostly occurs on background images and on text next to a floated element. To remedy the problem, simply insert position: relative into the CSS command for the disappearing element, and for some bizarre reason that'll usually fix the problem. If this doesn't work (it sometimes doesn't), assign a width to the offending element in the CSS and that should fix the problem.


Source:
http://www.webcredible.co.uk/user-friendly-resources/css/more-css-tricks.shtml

0 Comments:

Post a Comment

<< Home