Have you ever wrote this?

body {
  font-family: Helvetica, Arial, Sans-Serif;

You’re all like: “Helvetica is the most awesome so I want that first, then Arial for PC’s since hey it’s pretty close, then fall back to whatever McSansSerif for crazyputers with like zero normal fonts installed.”

Turns out this is way better:

body {
  font-family: Sans-Serif;

Macs will get awesome Helvetica by default. On PC’s, even if they have Helvetica it can look worse that Arial for whatever reason, so this way they get Arial by default. And you’re still covered by the generic keyword. Shorter, easier, yay.

Thanks to @mathias

Article source:

Comments are closed.