1.center_me {
2 display: flex;
3 justify-content: center;
4 align-items: center;
5}
11. Enclose the div that you want to center with a parent element
2(commonly known as a wrapper or container)
3
42. Set “text-align: center” to parent element.
5
63. Then set the inside div to “display: inline-block”
1
2 div
3 {
4 width: 70px;
5 height: 300px;
6 border: 1px solid #c3c3c3;
7 display: flex;
8
9 flex-wrap: wrap;
10 align-content: center;
11}
12