Skip to content

Instantly share code, notes, and snippets.

@ProjectCleverWeb
Last active September 20, 2023 09:46
Show Gist options
  • Star 38 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save ProjectCleverWeb/4052a53abd8c6f8c6aea to your computer and use it in GitHub Desktop.
Save ProjectCleverWeb/4052a53abd8c6f8c6aea to your computer and use it in GitHub Desktop.
Example of how to do centered text and images in Githb Flavored Markdown
@imflash217
Copy link

Why does the alignment for images/gif doesnot work in GitLab even when it supports MD?

@fredkrudger
Copy link

Thank's Bro!

@franz-josef-kaiser
Copy link

@vinaykumar2491 Because the Markdown here is GitHub flavored MarkDown (enhanced superset of MarkDown).

@binaryben
Copy link

Ya, very helpful. I was stuck trying <p style="text-align: center;"> ... </p> but I presume Github strips that. Cheers!

@nathan-fiscaletti
Copy link

Apparently, you can't center <h2>.

@zxdawn
Copy link

zxdawn commented Jan 27, 2019

How to centered images in one line?
This one doesn't work:

<p align="center">
  <a href="https://github.com/zxdawn" class="fancybox" target="_blank" rel="external"><img src="http://i.imgur.com/0o48UoR.png" width="40" height="15" alt="GitHub" title="GitHub"></a>
  <a href="https://twitter.com/zhangxin_dawn" class="fancybox" target="_blank" rel="external"><img src="http://i.imgur.com/tXSoThF.png" width="40" height="15" alt="Twitter" title="Twitter"></a>
  <a href="https://www.facebook.com/zxdawn" class="fancybox" target="_blank" rel="external"><img src="http://i.imgur.com/P3YfQoD.png" width="40" height="15" alt="Facebook" title="Facebook"></a>
</p>

image

@ManuelZ
Copy link

ManuelZ commented Jun 14, 2019

Thanks sir!

@RedSquirrrel
Copy link

Thank you :)

@vvitsenets
Copy link

tnx

@ajkovar
Copy link

ajkovar commented Jul 4, 2020

Gracias :)

@joseramirezguaigua
Copy link

Is possible to justify text in Github Flavored Markdown?

@Moggle-Khraum
Copy link

Thanks Bud!

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