Yeah, it does look better with:
Code:
#timeDiv
{
position: absolute;
left: 5px;
top: 610px;
background: #f7fffc;
opacity: 0.6;
}
#dateDiv
{
position: absolute;
left: 610px;
top: 610px;
background: #f7fffc;
padding:5px;
opacity: 0.6;
}
And that's just how I'd do it. IE 8 and less will skip it, which is just as well because it's text and would be distorted by the filter in IE 8. Because there's a background color, I think it would be OK in IE 6, possibly 7 with the filter. But those two browsers are rarely used, so why bother?
If you want to though, in a case like this you can put the text in one absolutely positioned div, and the background color in another behind it. Make the text a slightly lighter color and apply the filter only to the div with the background color.
Bookmarks