how to align contents of div in center

Solutions on MaxInterview for how to align contents of div in center by the best coders in the world

showing results for - "how to align contents of div in center"
Michele
14 Oct 2016
11. Enclose the div that you want to center with a parent element 
2(commonly known as a wrapper or container)
3
42. Set “text-align: center” to parent element.
5
63. Then set the inside div to “display: inline-block”
similar questions
queries leading to this page
how to align contents of div in center