Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Validate CSS Opacity with W3C validator
Old 07-31-2008, 08:47 PM Validate CSS Opacity with W3C validator
firebladeiii's Avatar
Average Talker

Posts: 26
Trades: 0
I have used Opacity:0.5; in my CSS file. When i validate with W3C, it is showing error. What is the alternative i can use? Or any other solution?
Hoping for a solution.
Thanks.
__________________
Thats it !

Please login or register to view this content. Registration is FREE
firebladeiii is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-31-2008, 09:52 PM Re: Validate CSS Opacity with W3C validator
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
http://www.quirksmode.org/css/opacity.html
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-31-2008, 10:07 PM Re: Validate CSS Opacity with W3C validator
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
opacity is a CSS3 spec. It doesn't validate to the 2.1 level that the validator is probably running at.

My advice: don't worry about it. CSS validation doesn't matter to the browsers or anything else. If your browser sees a selector that it doesn't recognize, it just ignores it, which is part of the specs.

The more standard browsers all recognize opacity because of how useful it is, not because CSS3 has been standardized (it hasn't).
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 08-01-2008, 06:23 AM Re: Validate CSS Opacity with W3C validator
firebladeiii's Avatar
Average Talker

Posts: 26
Trades: 0
yes wayfarer07, you are ryte. but my main concern is to get the CSS valid logo in my site. I have already certified my XHTML.
really this Opacity killing me.

Let me tell my problem.
I have to put a circle Play button infront of an image. So iam using the Play button as a PNG. PNG support in all browser except IE 5 or 6. So i am using CSS Opacity filter to make the PNG transparent in IE < 7.

any help apreciated pls.
__________________
Thats it !

Please login or register to view this content. Registration is FREE
firebladeiii is offline
Reply With Quote
View Public Profile
 
Old 08-01-2008, 06:25 AM Re: Validate CSS Opacity with W3C validator
firebladeiii's Avatar
Average Talker

Posts: 26
Trades: 0
Quote:
Originally Posted by LadynRed View Post
SOrry LadynRed, I went throught the link. This is also using the same Opacity attribute.
I want it to be validated in W3C.
__________________
Thats it !

Please login or register to view this content. Registration is FREE
firebladeiii is offline
Reply With Quote
View Public Profile
 
Old 08-01-2008, 07:44 AM Re: Validate CSS Opacity with W3C validator
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Sorry, it can't be. There is no CSS3 validator. You could add it as an inline-style with JavaScript, and it would pass validation, but that is totally pointless and wasteful.
__________________
Join me on
Please login or register to view this content. Registration is FREE

Last edited by wayfarer07; 08-01-2008 at 07:45 AM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 08-01-2008, 04:12 PM Re: Validate CSS Opacity with W3C validator
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
If all you're doing is using a transparent png, then try one of the several javascript solutions to make IE6 and below render the transparency. You won't have the validation problems that go with the opacity property you're trying to use.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-12-2009, 10:34 AM Re: Validate CSS Opacity with W3C validator
SolidEagle's Avatar
Experienced Talker

Posts: 30
Name: Arjan Nijmeijer
Location: Stadskanaal
Trades: 0
Quote:
Originally Posted by wayfarer07 View Post
Sorry, it can't be. There is no CSS3 validator. You could add it as an inline-style with JavaScript, and it would pass validation, but that is totally pointless and wasteful.
You're wrong! There IS a w3c css3 validator

http://jigsaw.w3.org/css-validator/v...ning=1&lang=nl

I've found this by changing the profile variable in the link to css3 :P

Just change the uri (www.nijm.nl/style/stadskanaal/style.css) variable!
SolidEagle is offline
Reply With Quote
View Public Profile
 
Old 01-12-2009, 11:32 AM Re: Validate CSS Opacity with W3C validator
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Well there you go, validate it like that since it's so important to you... But CSS valid logos are just a waste of space on a website IMO, since they mean absolutely nothing to the average consumer.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 01-12-2009, 11:39 AM Re: Validate CSS Opacity with W3C validator
SolidEagle's Avatar
Experienced Talker

Posts: 30
Name: Arjan Nijmeijer
Location: Stadskanaal
Trades: 0
Quote:
Originally Posted by wayfarer07 View Post
Well there you go, validate it like that since it's so important to you... But CSS valid logos are just a waste of space on a website IMO, since they mean absolutely nothing to the average consumer.
You're right but programming by following the standards is 1337 and give you bragging rights ! But the average consumer doesn't give a crap for anything as long as they get a working website which they think looks nice...
__________________
The Eagle Soars Above You!

Please login or register to view this content. Registration is FREE
SolidEagle is offline
Reply With Quote
View Public Profile
 
Old 01-12-2009, 05:32 PM Re: Validate CSS Opacity with W3C validator
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
programming by following the standards is 1337 and give you bragging rights
Surely you have more impressive things to brag about.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-12-2009, 07:22 PM Re: Validate CSS Opacity with W3C validator
SolidEagle's Avatar
Experienced Talker

Posts: 30
Name: Arjan Nijmeijer
Location: Stadskanaal
Trades: 0
Quote:
Originally Posted by LadynRed View Post
Surely you have more impressive things to brag about.
Of course I do, but that would be offtopic
__________________
The Eagle Soars Above You!

Please login or register to view this content. Registration is FREE
SolidEagle is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Validate CSS Opacity with W3C validator
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.64280 seconds with 12 queries