• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

CSS font-size both in px and rem

Welcome!

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.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › CSS font-size both in px and rem

This topic is: resolved

Tagged: #fontsize #px #rem

  • This topic has 3 replies, 3 voices, and was last updated 9 years, 10 months ago by hp.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 4, 2014 at 3:35 am #93338
    Eva Lim
    Member

    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.

    h1 {
    font-size: 36px;
    font-size: 3.6rem;
    }

    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.

    March 4, 2014 at 5:28 am #93340
    Brad Dalton
    Participant

    Its used as a fallback for some browsers.


    Tutorials for StudioPress Themes.

    March 4, 2014 at 7:01 pm #93448
    Eva Lim
    Member

    You're right. I found this article that explains further: http://snook.ca/archives/html_and_css/font-size-with-rem
    Thanks.

    August 11, 2015 at 6:25 am #162021
    hp
    Member

    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?

    Thanks.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble