Home>Support>CSS to set mobile padding for whole website

CSS to set mobile padding for whole website

Hey there,

The padding for my site on mobile is a little wonky. It goes right up to the edges and doesn’t look great on mobile. In the page builder, I can adjust the Mobile Padding fields to get some white space on the sides. However, this doesn’t change the padding on everything on the page (the Title of a blog post goes all the way to the edges, but the body text doesn’t). Can someone please help me with CSS that will apply mobile padding to my entire site and all the elements?

I tried some of the CSS suggestions on the help forum but it wasn’t giving the desired result.

Please help! Thanks,

Patrina

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 5 years, 7 months ago Alex S
    Hi, I Work Here

    Hi Patrina,

    Do you have a public URL where we can take a look at what’s going on?

  2. 5 years, 7 months ago Patrina Pellett

    Hey there,

    View this post on mobile:

    https://locallect.com/more-traffic-to-weebly-blog/

    In this post, I added a mobile padding of 50 px in the row element. Notice how the title of the page and title of the post is all the way to the left edge (no margin) but everything else has the 50 px margin.

    Please let me know how I can make everything have a margin on mobile devices. If there is CSS to apply to the whole page instead of having to adjust the mobile padding for every row element that would be awesome.

  3. 5 years, 7 months ago Alex S
    Hi, I Work Here

    Hi Patrina,

    To achieve what you’re after, you should edit your custom CSS and replace:

    #main {
        padding: 0
    }
    

    With:

    #main {
        padding: 0 25px
    }
    
  4. 5 years, 7 months ago Patrina Pellett

    Seems to have done the trick!

    Big thank you!

  5. 5 years, 7 months ago Alex S
    Hi, I Work Here

    Hi Patrina,

    Great to hear! :)
    Please be sure to post another thread if you have any other questions.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More