Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Guide to aligning images in github readme.md files. https://davidwells.io/snippets/how-to-align-images-in-markdown

Aligning images

left alignment

This is the code you need to align images to the left:

<img align="left" width="100" height="100" src="http://www.fillmurray.com/100/100">

right alignment

This is the code you need to align images to the right:

<img align="right" width="100" height="100" src="http://www.fillmurray.com/100/100">

center alignment example

<p align="center">
  <img width="460" height="300" src="http://www.fillmurray.com/460/300">
</p>

Markdown Formatting on steriods

If you like this, you might enjoy markdown-magic. I built it to automatically format markdown files and allow folks to sync docs/code/data from external sources.

@Poxios
Copy link

Poxios commented Sep 19, 2022

Awesome!

@alitheDev
Copy link

alitheDev commented Sep 29, 2022

Thanks Mate.

@Natrexq
Copy link

Natrexq commented Oct 16, 2022

Thx a lot <3

@0E9B061F
Copy link

0E9B061F commented Oct 17, 2022

Thanks, friend

@vishwac09
Copy link

vishwac09 commented Oct 21, 2022

Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment