Image Styling
Examples of default Markdown image styling and raw HTML image overrides.
1 minute read
By default, Markdown images are written like this:

These are rendered with:
max-width: 70%of the viewportmax-height: 80vhof the viewport height- centered block layout
This default styling works well for most landscape (horizontal) images. However, if an image is very tall, narrow, or otherwise looks awkward, you can override the default by embedding raw HTML and specifying a custom size:
<img src="./images/example.png" alt="Example description"
style="max-width: 40vw; max-height: 60vh; display: block; margin: 1rem auto;" />