Answer the question
In order to leave comments, you need to log in
Is it possible to use flex for a link?
Is it possible to use flex on link a to center image and text?
<a href="#" class="header__logo">
<img src="" alt="logo">
<span>Text</span>
</a>
Answer the question
In order to leave comments, you need to log in
Applying Flexbox to a link is no problem.
It's just not very clear how you want to "center" the image and text, because due to Flexbox they will be located side by side
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question