Answers for "vertial align in a div"

CSS
89

center a div in css

.container {
  display: flex;
  justify-content: center;
  align-items: center;
}
Posted by: Guest on September-09-2020
1

css vertical align items in div

.flex-center-vertically {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 400px;
}
Posted by: Guest on January-27-2021

Browse Popular Code Answers by Language