D
D
Dvorak2016-08-31 20:16:59
css
Dvorak, 2016-08-31 20:16:59

How to properly align pseudo-element on flexbox?

Hello. I would like the right icon (which is VK) to be aligned to the right, and everything else to the left. In this case, everything should be aligned vertically in the center. It is not possible to wrap elements in other tags
. How to fix it?
codepen.io/anon/pen/jrNdgE

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DTX, 2016-08-31
@allishappy

Some kind of stupidity ..
codepen.io/anon/pen/ALAwYV
Why wrap everything (a)? At least wrap the text in a span ..
This would be more correct:
Codepen

H
HamSter, 2016-08-31
@HamSter007

a {
    display: flex;
    align-items: center;
    align-content: space-between;
    justify-content: space-between;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question