Site logo

[Resolved] Individual blog post padding on mobile

Home Forums Support [Resolved] Individual blog post padding on mobile

Home Forums Support Individual blog post padding on mobile

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1955263
    Jessica

    Back again with another blog post question, this is the trickiest area for me to figure out padding/spacing! 🙂 I’m now confused how to edit the padding on a mobile device of my individual blog posts: https://gojkemail.com/spicy-walks/ On mobile there’s no padding at all, but on desktop it looks great, except I’d like to add some padding at the bottom of each blog post so it doesn’t hit the footer. I’m sure I’m missing something simple, but let me know if you have a solution, thanks!!

    #1955267
    Ying
    Staff
    Customer Support

    Hi Jessica,

    You are using a layout element to set the width of content to 800pxon single post which made it no padding.

    We can add some padding to the container on mobile:

    @media (max-width: 768px) {
        .single-post #content {
            padding: 40px 20px ;
        }
    }

    Feel free to change the numbers 🙂

    #1955271
    Jessica

    That worked perfectly, thank you! How about adding bottom padding to all individual blog posts on desktop? Is there similar CSS? Thanks in advance!

    #1955375
    Elvin
    Staff
    Customer Support

    Hi Jessica,

    For desktop, we can do @media (min-width:769px)

    Example:

    @media (min-width: 769px) {
        .single-post #content {
            padding-: 0px 0px 40px 0px ;
        }
    }

    first value is top, second value is right, the third value with 40px is bottom, fourth value is left. 🙂

    #1956361
    Jessica

    That worked, thanks so much for your help!

    #1956568
    Elvin
    Staff
    Customer Support

    Nice one. No problem. 😀

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