Welcome to WebmasterWorld Guest from 54.144.79.200

Forum Moderators: not2easy

Message Too Old, No Replies

custom css properties

are they possible?

     

mehh

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

5+ Year Member



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

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

10+ Year Member



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.