Jump to content

Image Opacity


Skatecrazy1

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?
Link to comment
https://forums.phpfreaks.com/topic/24171-image-opacity/
Share on other sites

Archived

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

×
×
  • Create New...

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.