Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2012
    Thanked 0 Times in 0 Posts

    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....

    <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;}
    Last edited by BobbyRachel; 12-21-2012 at 08:44 AM.

  2. #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Thanked 1,874 Times in 1,858 Posts
    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.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use a DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  3. Users who have thanked Excavator for this post:

    BobbyRachel (12-31-2012)


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts