CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   HTML & CSS (http://www.codingforums.com/forumdisplay.php?f=13)
-   -   not working correctly in IE 7? (http://www.codingforums.com/showthread.php?t=284504)

BobbyRachel 12-21-2012 08:25 AM

not working correctly in IE 7?
 
I have a outer div which is working correctly in chrome, firefox but not in IE.. I have some contents inside outer div.. to make it center aligned or middle of page i gave this width:970px; height:630px; to outer div... so that i got the contents at the center in chrome and Mozilla... but in the case of IE 7.. in IE its left aligned.. here is my css....

Code:

<style type="text/css">
body, html { font-family:helvetica,arial,sans-serif; font-size:90%; }
div.outer {  display: block; margin-left: auto;margin-right: auto;width:970px;height:630px;position:relative;}
</style>


Excavator 12-21-2012 03:54 PM

Hello BobbyRachel,
You should try validating. See the links in my signature line about validation.
There is also a link there about DocTypes, I kind of suspect you'll need that link as well.


All times are GMT +1. The time now is 11:51 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.