- This topic has 3 replies, 3 voices, and was last updated 8 years, 3 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
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.
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?
© 2023 WPEngine, Inc.