Nope, nope, nope, line-height is unitless

Comment icon Small gray icon for comments Comments

Here’s a bit of CSS trivia that, at least on the surface, seems straightforward but that I see misused repeatedly. Let’s start with an oldie-but-goodie CSS interview question: You want the text on your website to be double-spaced by default. Which of the following line-height values is the best way...


The front-end is...

Comment icon Small gray icon for comments Comments

Originally posted on Medium; reposted and expanded further here. It’s been my experience that most front-end developers know the feeling of being mislabeled for their skills: “The front-end? Oh, that’s just wireframes and fonts and…” 😒 Yeeeeeah nope! The front-end is also: Design Yes, front-end developers design. Maybe not 100%...


CSS reset for minimalists

Comment icon Small gray icon for comments Comments

CSS resets help enforce style consistency across different browsers by providing a clean slate for styling elements. Resources like Normalize, et al., do an excellent job at managing this. For a couple of years now, I’ve opted to go with a minimalist approach to resets and found it to be...