-
#CSS. Instead of
margin: 0 auto
, just writemargin: auto
. Many here know, also that this is simplified, however many also don’t know as the unnecessary0
is still very popular. In most cases you can leave it out. Reference as this isn’t intuitive: w3.org/TR/CSS22/visudet.html#block-root-margin