How do I center an img in an anchor?
I have an icon that I want to put next to a button, but the thing is the icon doesn't want to center verticaly (top-right)
I have the anchor then the image then the text and a closing anchor, so the image is inside of the anchor, along with the text
1 Reply
Without code we can only guess
I will make one guess, otherwise you'll need to provide more (see the pinned post "How to Ask Good Questions"
My guess: on the <a>
display:flex
and align-items: center