Last Updated: February 25, 2016
·
947
· patrick murphy

Simplify your stylesheets.

Start your CSS files with the asterisk(*) selector. The asterisk selector selects all html elements. You can easily set the default styles you want for all elements.
For example:

* {
margin:0;
padding:0;
}

I have found that using this method decreases time spent fixing browser inconstancies. It can also decrease lines of code if you find yourself applying the same attributes to every element. However, due to the Cascading nature of CSS you can easily later change these attributes for those elements that differ.