Answer the question
In order to leave comments, you need to log in
How to push a flex container to the right side?
Good day! Here is such a menu:
All menu items are li in ul, that is, a list. Here is the CSS:
.header-menu
width: 100%
display: flex
margin: 0
& > li
display: flex
justify-content: center
flex-direction: column
margin-right: 15px
margin-left: 15px
position: relative
Answer the question
In order to leave comments, you need to log in
Banal margin-left: auto works wonders. Hello tricky points from the spec :)
Here is your solution:
https://jsfiddle.net/a0hz7hp1/3/
First, it's not css, it's scss.
Secondly, take the already compiled css and see what styles you have applied to what.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question