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="" 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