Site logo

[Resolved] No Padding Mobile Home Page

Home Forums Support [Resolved] No Padding Mobile Home Page

Home Forums Support No Padding Mobile Home Page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1541490
    Stuart

    Hi there,

    I am doing a static homepage using WP Show Posts, my mobile version has no padding on the sides, attached is picture showing.

    Any simple CSS to add a bit of side padding on the homepage only?

    Pic: https://imgur.com/a/JGMusVm

    Thanks

    #1541519
    Elvin
    Staff
    Customer Support

    Hi,

    Any simple CSS to add a bit of side padding on the homepage only?

    You can use body.home as a css selector to apply your style specifically to your homepage only.

    Try this CSS:

    @media (max-width:768px){
    body.home .entry-content{
       padding: 0 30px;
    }
    }
    #1541540
    Stuart

    Perfect,

    Thanks Elvin 🙂

    #1541563
    Elvin
    Staff
    Customer Support

    Nice one.

    No problem. 🙂

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