I am (was) looking for a way that my images would be full width despite the body padding. And, I wanted my images to also not be too tall.
Making matters more difficult, (a) all of the images live inside of <p>
tags and I can't (easily) assign classes, etc to them. That is because the pages are generated from a Markdown conversion and I wanted to avoid having to apply a ton of regex (though I was willing to if need be).
The requirements were basically that the text be padded inside the body (but not via a p
margin so I didn't have to deal with non-paragraph elements). And, I wanted it such that the maximum height was some percentage of the current width. Finally, in addition to trying to avoid touching the HTML, I also didn't want to add any js if I could help it.