How to make a wider margins on posts/pages

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2936 Reply

    Anonymous

    Hi Ron it’s Jenny again,
    Just wondered, how can I set the left+right margins to be a bit wider on posts and pages.
    The default margins are not wide enough for my needs.
    Obviously, I am talking about the white space (you may call it padding) that “wrap” the text in posts and pages, not the general margins of the entire theme…
    Thx,
    Jenny

    #2937

    Ron
    Keymaster

    You can add this code on either the Custom CSS or a child theme style.css
    You can use either of the two code samples:

    This adds padding to the content only. I’m guessing this is what you’re after.

    .single-view .entry-content {
        padding: 0 20px;
    }

    This adds padding to the content including the title on top and the comments underneath.

    .single #content, .page #content {
        padding: 0 20px;
    }

    Modify the numbers to suit your needs.
    0 represents top and bottom padding.
    20px represents the left and right padding.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to make a wider margins on posts/pages
Your information: