DEV Community

Discussion on: What CSS tip do you want to share with others?

Collapse
bayuangora profile image
Bayu Angora

I use this too, but I put the initial font size on body rather than html. Which one is better?

Collapse
nicolalc profile image
Nicola

Currently, there is another one:

:root

I think this is the best, I don't think there are differences between HTML and body. Personally I prefer to use html instead of body for font-family and size, but It's a personal idea 😎

Thread Thread
bayuangora profile image
Bayu Angora

Thanks.