Template talk:Xbrowsercss

From The Urban Dead Wiki
Revision as of 18:36, 21 January 2010 by Aichon (talk | contribs) (New page: Used for CSS3 properties that are still implemented using browser-specific code in Firefox and WebKit. For instance, with the box-shadow, you could use this template as follows: <pre>{{xb...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Used for CSS3 properties that are still implemented using browser-specific code in Firefox and WebKit. For instance, with the box-shadow, you could use this template as follows:

{{xbrowsercss|border-radius: 10px}}

Doing so would produce:

border-radius: 10px;-webkit-border-radius: 10px;-moz-border-radius: 10px;-o-border-radius: 10px;

which should work in both Gecko-based (e.g. Firefox and Camino) and WebKit-based (e.g. Chrome and Safari) browsers. In theory.