Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub Pages: How can I wrap text around an image?

I have a GitHub blog page. Somewhere in the middle of the blog page, I have an image which is shown with the following Markdown content.

![My Image](pathto/myimage.png)

This works fine to display the image, but I also want to add a paragraph (wrapped to the right of the image) where I describe the image. How do I do this?

like image 997
user93353 Avatar asked Sep 13 '25 22:09

user93353


1 Answers

You can simply use <img> HTML tag with the align attribute in the Markdown content.

So instead of doing:

![My Image](pathto/myimage.png)

Write it as:

<img align="left" src="pathto/myimage.png" alt="My Image">

Align the image to the left, if you want the text to be on the right. If you want the text on the left, align the image to the right.


Screenshots

Markdown Text

Enter image description here

Markdown Preview

Enter image description here

like image 84
Hackinet Avatar answered Sep 16 '25 12:09

Hackinet