The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › CSS – Margin: 0 auto ; › Re: CSS – Margin: 0 auto ;
Firstly the ‘center’ element is not longer used and should be replaced with a div.
Next,
margin:0 auto;
will not work unless you set a width to the div.