Archived topic
remove padding on images
7 replies · Started by Alex on July 23, 2019
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 -
Thanks in advance for your help!
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 :)
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
Add this CSS as well:
#generate-section-3 .generate-sections-inside-container {
padding-left: 0;
padding-right: 0;
}
Let me know :)
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
Yup the section ID is automatically generated if you don't add a custom one yourself.
brilliant, thanks for the info and for your help!
No problem :)