DEV Community

Discussion on: What is the biggest mistake new developers make when learning CSS?

Collapse
 
websmyth profile image
Dave Smyth

Such a big topic! That said...

Fonts set with rem are easier to control than em, and if you use that then em becomes a really handy method of specifying space around those elements. I’ve been experimenting with variations on font-size: calc(1rem + 0.3vw); as a way of setting font sizes that don’t need media queries.

Then there are things like trying to use max-width instead of width etc. Really depends on the context. 🙌

Thread Thread
 
darthknoppix profile image
Seth Corker

I know it’s a big topic but thanks for sharing those great tips. The font-size calculation looks great.

I’m loving vw and vh units at the moment for making things more responsive.