Could anybody explain how is a good way to group css style rules please.
I will give some examples:
1.
h1{
font-size:14px;
color:blue;
}
h2{
font-size:14px;
color:green;
}
Both have the same font-size. Should I put extra h1,h2 rule and put there font-size?
2.
I use 2 different color rules for anchor texts. Should I create extra class only for color?
<a class="index colorA" ...
colorA{
font-color:green;
}
3.
I have on different pages different side bars. Sidebar 1 is on index and sidebar 2 on other pages. Both have in common their width and background color, but have also 3 different rules. Should I create extra class for width and background color?
It would be really helpful if you can give some your examples what you group and what not.
Thank you!