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.
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.