+ 1
How do you center an HTML element on a page with CSS?
what property and values are needed to center an element on the page with css?
1 Réponse
+ 3
For centering the element w.r.t the page.
div{
width: 90%;
margin:0 auto;
}
For centering the content.
div {
text-align:center;
}