• Hi,

    I’m trying to decrease the space between my post’s left margin and the beginning of the posts’ title (H1). I’m using this in additional CSS:

    h1.entry-title {
        font-size: 38px;
        line-height: 55px;
        margin: auto 110px; 
        padding: 0;text-align: left

    This makes the post look good in “Customization” in the back-end https://imgur.com/W723FZq , but not on the front-end:https://imgur.com/ogqNQ9t . Plus it messes up the look on mobile.

    Thanks!

    • This topic was modified 3 years, 10 months ago by dlangpap. Reason: forgot mobile

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi @dlangpap,
    Hope you are doing well. For your issue, you can try the below CSS code. Maybe it will help you.

    h1.entry-title {
        font-size: 42.66px !important;
        line-height: 50px;
        margin: 0 auto 15px;
        padding: 0;
        text-align: left;
    }
    
    @media only screen and (min-width: 200px) and (max-width: 670px)
    body h1.entry-title {
        line-height: 45px;
        padding: 0 20px;
    }

    For put, this code Go to Dashboard > Appearance > Customization > Additional CSS.
    Thank you.

    • This reply was modified 3 years, 10 months ago by Nadia Akther.
Viewing 1 replies (of 1 total)
  • The topic ‘H1 margin’ is closed to new replies.