divs not centering in IE7

Discussion in 'CSS' started by anantk, Dec 22, 2007.

  1. #1
    i use
    margin : 0px auto; 
    Code (markup):
    to center my divs through css.
    it works well in firefox, but in IE7, the divs look disarranged.
    any fix for this?
     
    anantk, Dec 22, 2007 IP
  2. fixeezy

    fixeezy Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Maybe I can help you... whats the page URL..?
     
    fixeezy, Dec 22, 2007 IP
  3. anantk

    anantk Active Member

    Messages:
    121
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #3
    the page is not online yet...
    will the css code be of any use to you?
     
    anantk, Dec 23, 2007 IP
  4. HPA

    HPA Notable Member

    Messages:
    1,335
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    205
    #4
    Yes please, provide the CSS code along with HTML, if needed.
     
    HPA, Dec 23, 2007 IP
  5. bmhrules

    bmhrules Peon

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Specify the page content type. For example:
    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    
    Code (markup):
    I believe it needs to be set so that the browser handles pages right.
     
    bmhrules, Dec 23, 2007 IP
  6. anantk

    anantk Active Member

    Messages:
    121
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #6
    anantk, Dec 24, 2007 IP