Template talk:Xbrowsercss: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
(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...)
(No difference)

Revision as of 18:36, 21 January 2010

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.