ThanhVuong0904• 465
@ThanhVuong0904
Posted
0
Bheki Accion Nkomo• 230
@BhekiAccion
Posted
@ThanhVuong0904 Hi may l know why and what it does? does it centre the div vertically or something? If that's the case isn't it better to apply that to the div than to the body element? Your advice will be greatly appreciated.
0
ThanhVuong0904• 465
@ThanhVuong0904
Posted
@BhekiAccion Because you set the max-width
value for the body
tag, margin: auto
or margin: 0 auto
will help center horizontal the child tag.
Marked as helpful
0