Answer the question
In order to leave comments, you need to log in
How to align the text with the image in the button in the center?
I'm making a button with an icon - https://code.sololearn.com/WJ9489HEocY4
But I can't make both text and image centered, both vertically and horizontally.
At the moment, I have achieved that the picture is centered, and the text is not vertical.
Tell me, please, how can I fix it? Preferably in my example
Answer the question
In order to leave comments, you need to log in
.button {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question