For all CSS3 properties I have to use different vendor prefixed versions to support different Render Engines. Here is an example:
-webkit-border-radius:3px;
-moz-border-radius:3px;
border-radius:3px;
background:#dee0e1;
background:-webkit-gradient(linear, 0 0, 0 100%, from(#f1f2f3), to(#dee0e1));
background:-moz-linear-gradient(#f1f2f3, #dee0e1);
background:-o-linear-gradient(#f1f2f3, #dee0e1);
background:linear-gradient(#f1f2f3, #dee0e1);
For a border-radius I have to use 3 different properties and for a background gradient I have to use background property in 5 different way. It increase the size of CSS.
Is there a way to use only one property and make Firefox 1-5 understand it?
LESSis a CSS language that compiles to normal CSS and gives you the ability to abstract away a lot of the tedious elements of writing stylesheets such as typing multiple vendor prefixes every time.Here’s a decent tutorial on making the vendor prefix problem less painful:
http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-never-type-a-vendor-prefix-again/
.. and here are the LESS classes from the tutorial: http://snipplr.com/view/47181/less-classes/