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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvgpngQmOv-WoV_xp18ikS-tCHpL5kOdtkoWJ7mqIdvZ0DIUcFZ_bczOCn62H7fqhZCIG1uWliBl-M5OMzNpqYjHpC0j_gNqUOyukJByBUnro59b2gyjeG9bAm-pjI3zg6I7wT/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