Support » Fixing WordPress » Add padding for posts/pages on mobile view

  • Resolved kufloyd



    I have this post that is padded ok when viewed on a laptop:

    However, on the phone, there’s no padding on the left or the right side of the lines. I’d like to add some space on both sides when the page/post is viewed on the phone.

    Is there CSS code to do that, or maybe a plugin that allows that?


    • This topic was modified 2 weeks, 1 day ago by kufloyd.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hii @kufloyd,

    You can add the following css code into your style.css file to add some spacing.

    .site-content{padding:0 20px;}

    Kindly change the padding as per your need.

    Let me know if still you need any help on this.


    Thread Starter kufloyd


    Thanks Sahil for the quick reply. That resolved the issue.

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