Blog

Margin: 0 auto – not working on IE

Web Development & web Design - Productfitter

If you have problem with style margin: o auto, which is not working in Internet explorer.

Check if you have in your header:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">	
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

If this is not solving your problem you should try to:
remove

 <!-- comment -->

if you have them on the first line.
Set Strict XHTML/1.0

Thanks to http://www.gotsrb.info

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>