Answers for "flexbox all items center bottm"

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
1

how to align a flex container center

.table-wrapper {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  margin: 0 auto;
}
Posted by: Guest on April-08-2021

Browse Popular Code Answers by Language