htmlimagegithubmarkdown

How to stack images horizontally in README.md


I want to stack images horizontally in README.md file on github.

<img src = "screenshots/tool.png" width ="200" />

<img src = "screenshots/world_flash.png" width ="200" />

This produces this effect:enter image description here

And I want them to be one next to another. How to do that?


Solution

  • Don't put any new lines in between them.

    <img src = "screenshots/tool.png" width ="200" /> <img src = "screenshots/world_flash.png" width ="200" />
    

    Should do the trick, at least according to my quick tests.

    Please, see Waylan's comment below for additional information.