Tagged: image mobile, image padding, padding mobile
HI. I am seeing padding around my images on mobile, which I want to remove.
I tried:
@media only screen and (max-width: 479px) {
#top .flex_column.av-llgp2cdp-3623419f95fd0220e3bfb96449f7146e {
padding: 0 !important;
}
}
but that didn’t work.
Can you help me with this?
Thanks so much
Nancy
Hey Nancy,
It looks like this is the padding you have on the Cell of your Grid Row element.
You can edit the Cell, go to Styling > Padding, select the Smartphone Portrait screen size, and set the padding to zero ( https://i.imgur.com/3BISq8f.png ).
Best regards,
Yigit
Yigit,
thanks for the help
That worked for the top image on that page, but not for the rest of the images on the page.
They are in a 1/1 column with 0 padding on mobile, but I dont’ see the changes
Can you take another look?
thanks
Nancy
Hi Nancy,
Please add the following code to the Quick CSS field to remove the bottom margin from the images:
.page-id-54 .avia-image-container.avia-align-center {
margin: 0;
}
Best regards,
Yigit
Hi Yigit,
I figured it out, thanks.