Jump to content

Archived

This topic is now archived and is closed to further replies.

Skatecrazy1

Image Opacity

Recommended Posts

Alright, well first, look at this layout [url=http://www.snapskate.com/v2/]http://www.snapskate.com/v2/[/url]

well when I try to make my XHTML and CSS validity images appear at 50% opacity until they are hovered over, by using something like this:

[code]
img.xhtml {

opacity:.50;
filter: alpha(opacity=50);
-moz-opacity: 0.5;
}

img.xhtml:hover {

opacity:.100;
filter: alpha(opacity=100);
-moz-opacity: 1.0;
}
[/code]

now, before I added this CSS, the css validated perfectly.

Now i get errors from the validator saying that the properties don't exist.  however, the hover opacity for the image, as you can see, works fine.

has anyone here done it a different way that is valid in CSS?

Share this post


Link to post
Share on other sites
http://www.elementary-group-standards.com/css/css-validatorinduced-errors.html

The problem is that the validator itself isn't 'up to date' with CSS standards.

Share this post


Link to post
Share on other sites
oh well that's depressing... is that something they know about and are trying to fix? (at w3c)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.