[Resolved] Want to change content padding for single posts

Home Forums Support [Resolved] Want to change content padding for single posts

Home Forums Support Want to change content padding for single posts

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #588335
    Zad

    I currently like the way my content padding is on every other page Archives, home page, about page, etc, but I want to make it 200 from the left and 200 from the right to make it more packed on single page blog posts.

    Is this possible with some CSS code or PHP code?

    #588337
    Zad

    What it looks like now: https://imgur.com/a/uwYyXHA

    What I want it to look like: https://imgur.com/a/hHUbeTI

    #588338
    Zad

    I’m hoping to keep the container width and everything else the same, I only want to change the content padding for single posts

    #588393
    Leo
    Staff
    Customer Support

    Hi there,

    It should be:

    @media (min-width:769px) {
        .single.one-container .site-content {
            padding-left: 100px;
            padding-right: 100px;
        }
    }
    #588934
    Zad

    It works, but it seems to distort the mobile view. Is there any way to implement this without changing it for mobile? or leaving mobile as is? which is 30 pixels from the left, right

    #588975
    Leo
    Staff
    Customer Support

    Edited the code above so it desktop only.

    #588993
    Zad

    Thank you! It worked!!

    #589012
    Leo
    Staff
    Customer Support

    No problem!

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.