Margin: Auto not working in IE

前端 未结 9 1221
悲哀的现实
悲哀的现实 2021-02-19 03:50

URL: http://cyberbat.co.uk/test container margin: auto is not working, is there any other way to put it in the middle in IE.

EDIT: Check it again, the index.php was the

9条回答
  •  情深已故
    2021-02-19 04:08

    Internet Explorer displays your website in quirks mode because of this bogus processing instruction at the top of markup:

    
    

    Remove it; margin: auto works in IE6+. There's no need to do text-align: center or other unnecessary changes.

提交回复
热议问题