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.
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.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.