+ 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?

17th Mar 2017, 10:34 PM
Superswimmer9876
Superswimmer9876 - avatar
1 ответ
+ 3
For centering the element w.r.t the page. div{ width: 90%; margin:0 auto; } For centering the content. div { text-align:center; }
17th Mar 2017, 11:37 PM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar