The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> moz-border-radius attribute and CSS Validation problem
Iraj Nazarian Azad
post May 7 2012, 07:42 PM
Post #1





Group: Members
Posts: 1
Joined: 7-May 12
Member No.: 17,071



Dear Sirs
Hi, I use these lines in my site

-moz-border-radius: 8px 8px 0 0;
-webkit-border-radius: 8px 8px 0 0;
-khtml-border-radius: 8px 8px 0 0;

and some other -moz- , -webkit , -khtml attributes in my site's style-sheet , it worked fine

but when I went to W3C CSS Validation Service

for CSS Validation Service , this site display many errors to me because of these attributes.

finally it force me to remove these attributes to validate my site angry.gif sad.gif .

Please kindly inform me that is there a way to use these attributes and site remains validated?

Best Regards,

Iraj Nazarian Azad

http://www.ahra.ir
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post May 7 2012, 08:01 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



Vendors extensions to CSS are by definition invalid according to W3C. I wouldn't worry about it though (as long as you know what you're doing), the validator is a guide, not the police. However:

In the "More Options" sub menu on http://jigsaw.w3.org/css-validator/#valida...ri+with_options you can set the value of "Vendor Extensions" to "Warnings". I haven't tried that myself though, and of course other people must use the same validator settings to get the same results. happy.gif

Or you can hide the whole stylesheet from the validator by creating the STYLE element with javascript, or create just the style properties with javascript.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 23rd April 2024 - 10:45 PM