[Resolved] How do I increase the margins around my columns in mobile view?

Home Forums Support [Resolved] How do I increase the margins around my columns in mobile view?

Home Forums Support How do I increase the margins around my columns in mobile view?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1485220
    Andy

    Hi there,

    I’d like to add some margins around my columns in mobile view for my homepage and category pages. Overall, so my blog posts stand out better in mobile view. Is this possible?

    Mock-up (Desired Result):

    View post on imgur.com

    Thank you!

    #1485315
    Leo
    Staff
    Customer Support

    Hi there,

    Try this CSS:

    @media (max-width: 768px) {
        body.blog .site-main, body.archive .site-main {
            margin-left: 25px !important;
            margin-right: 25px !important;
        }
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know if this helps ๐Ÿ™‚

    #1485383
    Andy

    Perfect, thanks Leo

    #1485408
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

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