Answers for "flexbox how to justify right one element and another left"

CSS
9

flexbox align right and left

.primary-nav {
    display:-webkit-flex;
    display:flex;
    list-style-type:none;
    padding:0;
    justify-content:flex-end;
}

.left {
    margin-right:auto;
}
Posted by: Guest on May-07-2020
1

flexbox align or justify one single item

margin-right: auto; /* align left ⇦ */
margin-left: auto; /* align right ⇨ */

margin-bottom: auto; /* align top ⇧ */
margin-top: auto; /* align bottom ⇩ */
Posted by: Guest on July-07-2021

Code answers related to "flexbox how to justify right one element and another left"

Browse Popular Code Answers by Language