lundi 10 octobre 2016

Use CSS to resize inline images

I write technical docs. Sometimes I need to include an inline image of a GUI icon in my instructions. The inline image is often a screenshot of the icon. Sometimes, the screenshot is much larger than the surrounding text, like in the image below. It looks bad, and that makes me sad.

example of inline image that is larger than surrounding text

Is there a combo of CSS rules to ensure that the inline image is the same size as its surrounding text?




Aucun commentaire:

Enregistrer un commentaire