CSS3 variables are the future

A good friend of mine, Dave Collier sent me a highly interesting article that had me all giddy and excited to be a Frontend Engineer. CSS3 is introducing variables, and is already available for use. The only downside, which is sure to be rendered moot soon, is that it is currently supported only by Google Chrome.

Have a read: http://www.aaronlumsden.com/css3/an-introduction-to-css-variables/

here is the code example excerpt from the above link:

:root {
    -webkit-var-brand-color: red;
 
}
h1 {
  color: -webkit-var(brand-color);
}
div {
background-color;
}
Posted: November 13th, 2012
Categories: code, Info
Tags: , , , ,
Comments: No Comments.