How to make a div center align in HTML?
Answers
Answered by
1
The trick here is to:
Enclose the div that you want to center with a parent element (commonly known as a wrapper or container)
Set “text-align: center” to parent element.
Then set the inside div to “display: inline-block”
Similar questions
Math,
7 months ago
Psychology,
7 months ago
English,
1 year ago
Math,
1 year ago
Science,
1 year ago