Dont-Repeat-Yourself. This is a well known programming principle and if you find yourself repeating certain styles this is an indication that you may be able to simplify your stylesheet by making use of classes or using a more general selector. For example, instead of declaring font-weight: bold several times in the stylesheet a better option would be to create a class for it.
.bold {
font-weight: bold;
}
This is in fact how libraries such as Bootstrap work under the hood!
Dont-Repeat-Yourself. This is a well known programming principle and if you find yourself repeating certain styles this is an indication that you may be able to simplify your stylesheet by making use of classes or using a more general selector. For example, instead of declaring
font-weight: bold
several times in the stylesheet a better option would be to create a class for it.This is in fact how libraries such as Bootstrap work under the hood!