Saturday, April 02, 2016

Specifying Image Dimensions in Markdown

You can use the image tag with custom CSS to specify the width and max-height like this:

<img src="https://2.bp.blogspot.com/-N0kZ1K9a86s/VobDaEQBp4I/AAAAAAAAA-8/eUSv6dKkgBk/s1600/color-blind5.png" alt="Ruby Plus" style="border: 1px solid #000; max-width:700px; max-height:600px;"/>
This will work if you are using Markdown to render page in a Rails app.

No comments:

Post a Comment