homepage Welcome to WebmasterWorld Guest from 54.226.173.169
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderator: open

CSS Forum

    
custom css properties
are they possible?
mehh




msg:3242264
 12:46 pm on Feb 4, 2007 (gmt 0)

I swear I've seen this some where. so instead of having 'color:#FFFFFF;' you can have things like 'custom-property: customvalue;' does anyone have any ideas?

 

mep00




msg:3242515
 8:51 pm on Feb 4, 2007 (gmt 0)

Browsers will ignore any properties which they don't understand. If the property is yourown, how will the browsers know how to implement it? There is a convention for browser vendors to add propitiatory properties by prefixing them with a hyphen followed by a vendors specific identifier, follow by another hyphen, and finally the property (e.g. -moz-border-radius for round corners in Gecko browsers). It's done this way because there are no standard properties which start with a hyphen. Iirc, the currently recognized identifier include "moz", "o", and "khtml" for Mozilla, Opera, and Konqueror/Safari, respectively. MicroSoft, as usual, doesn't follow the convention, which may result in problems in the future.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved