Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

custom css properties

are they possible?



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?


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.

Featured Threads

Hot Threads This Week

Hot Threads This Month