+ 3
Div position
how to make position of div or section in center of page?
6 Answers
+ 11
Both this methods dont require any calculations and are responsive.
Method 1: With Flexbox.
https://youtu.be/7BAG-h2f9kA
Method 2:With Margin:auto.
https://youtu.be/sDUpTaCBUHQ
+ 4
HTML:
<div></div>
CSS:
div {
top:0;
bottom:0;
left:0;
right:0;
margin:auto;
position: absolute;
}
+ 2
hei bro its helped me
thanks you so much :)
+ 1
Use <center> tag
To Make that element perfectly centerd