Skip to content

Instantly share code, notes, and snippets.

@usmanakram232
Forked from DavidWells/aligning-images.md
Last active January 9, 2020 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save usmanakram232/f4e89be3732e386733926c7d1083e5c7 to your computer and use it in GitHub Desktop.
Save usmanakram232/f4e89be3732e386733926c7d1083e5c7 to your computer and use it in GitHub Desktop.
Guide to aligning images in github readme.md files #kb

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>

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