DO YOU NEED A CONTENT WRITER FOR YOUR BUSINESS?

Your One-Stop Solution for All Content Needs! Click here for more!
Categories: Css

Align text vertically next to an image

Share

Need to Align text vertically next to an image? Here is a simple way to align text vertically that is also next to an image.

Actually, this is quite simple. Apply the align to vertical to the image. Since it is all in one line, so, this is really the image that you want aligned rather than the text.

Suppose, you have a image tag and a text next to the image. So, wrap both within a div.

For example, you have below image tag:

<img src="image.jpg">

And a text:

<span style="">This is working</span>

Read Also: Horizontally center a div within a div

So, wrap both in a div and apply the below css rule.

<div>
<img src="image.jpg" style="vertical-align:middle;">
<span style="">This is working</span>
</div>

Result:

CSS Designer

Recent Posts

5 Secrets of Online Trading You Should Know

Online trading has brought ease of trading, better security protocols, and fast trade executions; however,…

1 week ago

Top Brand Promoter Agency in India | Increase Retail Sales by 40%

Very few brands suffer from a product issue. It's a conversion issue. People enter DMart,…

2 weeks ago

Retail KYC Collection & Verification Services in India | Fast & Compliant

The onboarding process of the retailer, distributor, or partner may soon become problematic if there…

2 weeks ago

All You Need to Know about Low THC Oil Registry Card Georgia

Many of the states in the United States of America allow the use of medical…

3 weeks ago

Easy Ways to Strengthen Online Security and Privacy

Did you know that every time you browse this website or any other, you leave…

4 weeks ago

Play Anytime, Anywhere with GameZone Arcade Games

Online casino has gained immense popularity with the rise of online casinos. Platforms like GameZone…

4 weeks ago