Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@innat
Created November 11, 2018 23:05
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save innat/49d12decb8f0c6cca2d994fba22886a2 to your computer and use it in GitHub Desktop.
Save innat/49d12decb8f0c6cca2d994fba22886a2 to your computer and use it in GitHub Desktop.
Center Images in GitHub README.md

For left alignment

 <img align="left" width="600" height="200" src="https://www.python.org/python-.png">

For right alignment

<img align="right" width="600" height="200" src="https://www.python.org/python-.png">

And for center alignment

<p align="center">
  <img width="600" height="200" src="https://www.python.org/python-.png">
</p>
@untalsanders
Copy link

<div style="text-align: center;">
    <img width="100%" src="/path/to/image.png">
</div>

The attribute align is deprecated.

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