Center Align – Using margin
Setting the width of a block-level element will prevent it from stretching out to the edges of its container. Use
margin: auto;, to horizontally center an element within its container.
The element will then take up the specified width, and the remaining space will be split equally between the two
margins.