Skip to content
Discussion options

You must be logged in to vote

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:

use <img align="top" src="..."> or <img align="center" src="..."> - these old html attributes sometimes work better than css
adjust the image size smaller so it naturally aligns better with text height
use <img src="..." height="20"> to match your text size
wrap everything in a table if you need more control over alignment

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…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@lmsflms
Comment options

@Tiimie1
Comment options

Answer selected by lmsflms
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ARORA288
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Profile Showcase your work on GitHub with a personalized profile, bio, contributions and pinned repositories Question Ask and answer questions about GitHub features and usage
5 participants