W
W
webfactory2019-08-27 22:26:26
Flexbox
webfactory, 2019-08-27 22:26:26

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

2 answer(s)
R
Roma Zvarich, 2019-08-27
@webfactory

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

L
Lynn "Coffee Man", 2019-08-27
@Lynn

I allow.
Signature. Seal.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question