Lego2012
11/23/2016 - 7:44 AM

Apply common styles

Apply common styles

/* 
There are other ways to apply common styles, of course. For example, I could create a .sans-serif class… 
*/

.sans-serif {
  font-family: sans-serif;
}

/* 
… and apply it to any element that I feel should have that style: 
*/

<p class="sans-serif">Lorem ipsum.</p>

/*
This affords me some control: I can pick and choose exactly which elements take this style and which don’t. 
*/