Topic: CSS

When CSS is !important

If you are reading this, you know the gist of “!important” is to counter-act the normal application of CSS rules based on selector specificity. One way to look at this is that it’s a shortcut to make up for another rule’s selector that is too

Pitfalls of styling the HTML element

This was fun painful. On the new website design, I had foolishly applied some styles to the <html> element — specifically my font stack for the website. The particular selection of fonts was very important in making this mistake obscure: html { font-family: helvetica,