Answers for "can flex 1 1 auto aligned in center"

CSS
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
0

how to center a element in flex

.iconContainer{
    display:inline-flex;
    align-items:center;
    justify-content: center;
    height:50px;
    width: 50px;
    border:solid green 3px;    
}
.iconLeft{
    display: inline-block;
}
Posted by: Guest on November-19-2021

Browse Popular Code Answers by Language