How do i center a line of text on the same line as an image | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do i center a line of text on the same line as an image

I have a line of text that is on the same line as an image (aligned right), and the image seems to bump the text towards the left.

16th Mar 2019, 3:29 PM
Joseph Manning
1 Answer
+ 5
Try this: <div style="text-align: right;"> <img src="..." /> <br> <p style="text-align: right;" >Text</p> </div>
16th Mar 2019, 3:37 PM
VEDANG
VEDANG - avatar