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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.