Answers for "flexbox align one item to center and other to right"

0

move text to center of page flexbox

// Assuming a horizontally centered row of items for the parent but it doesn't have to be
.parent {
  align-items: center;
  display: flex;
  justify-content: center;
}

.child {
  display: flex;
  align-items: center;
}
Posted by: Guest on April-15-2021
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 align one item to center and other to right"

Browse Popular Code Answers by Language