October 2017
Intermediate to advanced
522 pages
10h 9m
English
The universal selector is just an asterisk. It's worth zero points, so it only works when no other selector is in contention. Take out the !important declaration in our CSS. Above our other rule sets, let's add a * as a selector and add a font-size of 9px and line-height of .5:
* { font-size: 9px; line-height: .5;}
Technically, this star should apply to every element unless something more specific is defined. Anything beats the * selector. Now when you go to the site, you will see that once you take the !important declaration out, you fall back to your inline style's line-height property:

In DevTools, we can see the ...
Read now
Unlock full access