If you find elements that use the same properties and values, group them together by using a comma (,) to separate each selector. This will save you from repetition.

For example, if you have the following:

h1 {
    color:#000;
}
h2 {
    color:#000;
}

Combine them as such:

h1, h2 {
    color:#000;
}


blog comments powered by Disqus

Published

22 November 2012
Under Micropost

Comments