<div className="d-flex align-items-center">
<img
src={member.user_profile_image}
width="41"
height="41"
alt=""
className="img-radius me-1"
/>
<h4 className="color-main">{member.user_name}</h4>
</div>
What I've noticed in the image is that the text is not quite aligned properly. It seems to be a little off center.
I attempted to use the align-items-center
property within flex to vertically center the text, but it didn't work as expected. Can anyone suggest an alternative method to align the Image with Text vertically?
Here's an example:
Bootstrap: 5.1