Forum Moderators: not2easy

Message Too Old, No Replies

Background color only visible when selecting and unselecting text

         

meanrat

8:00 am on Sep 15, 2009 (gmt 0)

10+ Year Member



Hello all

I have a website with a CSS problem I've never encountered before. It's about the antique browser IE6. I have a background color which is not visible in IE6. The DIV just looks transparent. But when I select the text with my mouse and then unselecting it, you can see the background color, but only behind the textlines.

When I press CTRL-A to select ALL and then unselecting ALL the background color is invisible again.


div.content_left div.error {
margin: 0 20px 10px 0;
padding: 10px;
background: #cb4b06;
color: #ffffff;
}

Tnx
Maarten

alias

12:44 pm on Sep 20, 2009 (gmt 0)

10+ Year Member



Try applying the zoom: 1; rule to the div. This might help in your case. Sometimes a combination of zoom: 1; and position: relative; is required, just as only position: relative;.