-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
github profile readmes use a pretty restricted markdown parser so a lot of css doesnt work including vertical-align here are some things you can try: honestly github strips out most inline styles so your options are pretty limited. the align attribute on img tags is your best bet even though its technically deprecated it still works in github markdown you could also try wrapping text and images in spans or divs but github is pretty aggressive about sanitizing html so it might just strip it out anyway |
Beta Was this translation helpful? Give feedback.
-
|
github profile readmes dont support custom css, so inline styles like the simplest solution is to control the icon size and let it align naturally with the text baseline: <img src="..." height="16"/> python,
<img src="..." height="16"/> c++,
<img src="..." height="16"/> js, and
<img src="..." height="16"/> kotlin.by setting a small height (around 14–18px), the icons align properly with the text on the same line. no css is needed, and this works reliably in github readmes |
Beta Was this translation helpful? Give feedback.
-
|
Short answer: not really. GitHub profile READMEs are rendered with a very restricted Markdown + HTML subset, and most CSS (including What does workYou can usually get acceptable alignment by relying on inline HTML defaults, not CSS: <img src="icon.png" width="20" height="20" /> |
Beta Was this translation helpful? Give feedback.

github profile readmes use a pretty restricted markdown parser so a lot of css doesnt work including vertical-align
here are some things you can try:
honestly github strips out most inline styles so your options are pretty limited. the align attribute on img tags is your best bet even though its technically deprecated it still works in github markdown
you could also tr…