0
Positioning my header
How can I center my div class header at the center of the webpage. My header class is a flex container with width of 97%
5 Answers
+ 2
Add margin: 0 auto; to the header
+ 2
If there display: flex; set
justify-content: center;
to the parent of header
+ 1
When you apply auto Margin then, the space left is equally provided to the left and right margin
0
margin-left:1.5%;
may also work.
0
ŠŠ³. ŠŠ½Š°Šæš perfect. But please I know of 0 as 0px up and down, what does auto do to the element?