Answers for "flex align below center"

CSS
22

css flex center

display: flex;
align-items: center;
justify-content: center;
Posted by: Guest on April-23-2020
1

how to set text in center in flex item

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

.list {
  display: flex;
  justify-content: center;
  flex-direction: column;  /* <--- I added this */
  align-items: center;   /* <--- Change here */
  height: 200px;
  width: 100%;
  background: silver;
}

.list li {  
  background: gold;
  height: 20%; 
}
Posted by: Guest on January-11-2022

Code answers related to "flex align below center"

Browse Popular Code Answers by Language