[Resolved] remove padding on images

Home Forums Support [Resolved] remove padding on images

Home Forums Support remove padding on images

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #964796
    Alex

    Hi team GP

    Is it possible to remove the padding between the 4 images (lunch, dinner etc) and also on either side so that it looks like this –

    https://ibb.co/sb84v5R

    Thanks in advance for your help!

    #965176
    Leo
    Staff
    Customer Support

    Hi there,

    Try this CSS:

    #generate-section-3 .lgc-column {
        padding: 0;
    }

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

    Let me know if this helps πŸ™‚

    #965195
    Alex

    Hi Leo,

    Thanks for that, it’s removed the padding on the inner but the each outer edge still has padding on it?

    What part is that CSS targeting exactly? How does it relate just to that section?

    Sorry if that’s a really stupid question!

    Thanks,

    Alex

    #965362
    Leo
    Staff
    Customer Support

    Add this CSS as well:

    #generate-section-3 .generate-sections-inside-container {
        padding-left: 0;
        padding-right: 0;
    }

    Let me know πŸ™‚

    #965701
    Alex

    Thanks Leo!

    Worked perfectly!

    Does DP add a new number to each section created then? Like in the example below –

    #generate-section-3
    }
    

    So you can then target different sections that way? Or could it be done by adding a class to the section instead?

    Thanks,

    Alex

    #966123
    Leo
    Staff
    Customer Support

    Yup the section ID is automatically generated if you don’t add a custom one yourself.

    #966127
    Alex

    brilliant, thanks for the info and for your help!

    #966175
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

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