I’m trying to learn how to have image galleries and feature images be the exact same width as the body text of my posts. The Doks theme I am using already does this for the posts on the ‘docs’ page, but not for other types of posts.
I’d be very thankful if someone could teach me how to do this. I’ve had no luck so far trying to figure it out with the inspector.
page: 👹 Wabisebi わびせび - Private Site Access
image 1, how I would like everything to look.
image 2, page I want to customize
Howdy, Seb! Looks like the problems are with galleries? Try this?
If it doesn’t work, try adding some !important. That fixes desktop, but you may need to make adjustments for mobile.
What I did: Looked through the page with the Chrome ‘dev tools’ element inspector until I found the div that held the images. Then I looked at the container that held the post text and figured out that it had max-width: 48rem. So I applied that to the container holding the image gallery.
Fixed! Thank you, Cathy.
And thank you for showing me how you did it.