View Single Post
Old 12-21-2012, 08:25 AM   PM User | #1
BobbyRachel
New Coder

 
Join Date: Dec 2012
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
BobbyRachel is an unknown quantity at this point
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>

Last edited by BobbyRachel; 12-21-2012 at 08:44 AM..
BobbyRachel is offline   Reply With Quote