Aliging div id using css

Discussion in 'Programming' started by swappy_18, Dec 8, 2009.

  1. #1
    I am trying to align a div id using css...

    My code:
    #tabs {margin-left: auto; margin-right: auto; width: 105em;}

    This works in firefox, but doesn`t in IE...Anyone know why...?
     
    swappy_18, Dec 8, 2009 IP
  2. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #2
    Try it
    #tabs {margin: 0px auto; width: 105em; text-align: center;}
     
    s_ruben, Dec 8, 2009 IP
  3. swappy_18

    swappy_18 Peon

    Messages:
    220
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No, it doesnt work :(
     
    swappy_18, Dec 8, 2009 IP
  4. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #4
    Can I look at full script?
     
    s_ruben, Dec 8, 2009 IP
  5. swappy_18

    swappy_18 Peon

    Messages:
    220
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    can we chat via IM?
     
    swappy_18, Dec 8, 2009 IP
  6. white10

    white10 Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    put an outer div around the #tabs div and align the outer div
     
    white10, Dec 8, 2009 IP
  7. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #7
    Why are you asking this in the programming forum?
     
    drhowarddrfine, Dec 8, 2009 IP
  8. adservermods

    adservermods Peon

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    adservermods, Dec 15, 2009 IP