Archived topic
Unable to Contain image in Element
7 replies · Started by Adam on November 7, 2022
Hi,
I am unable to contain the size of my image in the about the author section at the bottom of every post. I've tried adjusting the image size, and it does not work.
Please help.
Hi there,
the webP conversion is changing the blocks markup which breaks the GB styles
To fix that requires CSS:
1. Select the Image Block and in Advanced > Additional CSS CLass(es) add: author-image
2. save those changes.
3. Then go to Customizer > Additional CSS and add this:
.author-image img {
width: 95px;
height: 120px;
object-fit: contain;
margin-right: 10px;
}
4. Clear any caches.
thank you
You're welcome
Got ahead of myself. I added it, and it's not working.
Aah, remove what you added.
And then see here:
https://generatepress.com/forums/topic/unable-to-contain-image-in-element/#post-2404735
I edited it, to make it clearer
Now it works.
Thank you David
You're welcome!