Computer Science, asked by sameerahmed5460, 11 months ago

How to make a div center align in HTML?

Answers

Answered by IASofficer
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