how to align image with text in html

Hello geeks! In this post I have shared the details about “how to align image with text in html”. Okay, let’s move on to the post.

how to align image with text in html

<div class="box">
    <img src="https://via.placeholder.com/60x60">
    <span style="">Works.</span>
</div>

.box 
   display: flex;
   align-items:center;

Conclusion

I hope this article helps you to know about “how to align image with text in html”. If you have any questions regarding this post please let us know via the comment section. Share this tutorial with your friends & family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment