Tagged: #fontsize #px #rem
Hi there, I'm looking at the CSS stylesheet of the Genesis sample theme and noticed that font-sizes for h1, h2, h3, h4, h5, h6 are all stated in both px and rem. Eg.
I don't understand why this is so? Why not just use either unit of measurement instead of both?
Hoping somebody will explain this to me, thanks.
Its used as a fallback for some browsers.
Brad Dalton has written 1000 + Genesis tutorials & 4000+ Code Snippets .
You're right. I found this article that explains further: http://snook.ca/archives/html_and_css/font-size-with-rem
I am slowly coming back to developing, and notice that new Genesis child themes remove rem already. So, should I use px only in CSS nowadays?
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!