T
T
The Dragger2016-06-29 15:00:42
css
The Dragger, 2016-06-29 15:00:42

How to do it right (flexbox)?

<nav>
    <a href="/" class="or">Logo</a>
    <a href="#">Главная</a>
    <a href="#">Portfolio</a>
        <a href="#">ru</a>
        <a href="#">en</a>
</nav>

css:
body nav {
  display: flex;
  justify-content: flex-end;
}
body nav a.or {
  align-self: flex-start;
  color: rebeccapurple;
}

b45fc5a83f5d44e590cfb8d692b9adce.png
how to make the logo be on the left?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
VisualIdeas, 2016-06-29
@IPD2

body nav a.or {
  color: rebeccapurple;
  flex-grow: 2;
}

Not perfect but it's better. or an empty separator with flex-grow
:
2

M
Maxim Timofeev, 2016-06-29
@webinar

www.internet-technologies.ru/articles/article_2097.html namely:

.item {
  order: <integer>;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question