Does anybody know why this margin would be a problem in ie7: margin: 20px auto; Runs great in all other browsers including ie8. Why wouldn't it run in ie7? Thanks
You use DOCTYPE? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> HTML: Or add parent container property text-align:center;
Actually I am using strict not transitional. and it runs great in all browsers except ie7. Is there a problem with ie7 and is there an ie7 hack for this? the auto is working and centering it is the margin of 20px that is not working. My margin on top and bottom dont work in ie7.
Add to your head: <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" /> Code (markup): it will force IE7 into thinking it's IE8 and behave (probably).