1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

centering problem

Discussion in 'HTML & Website Design' started by 3kau, Mar 20, 2008.

  1. #1
    I have a centering problem also
    I can get the website centered in IE and Firefox

    but in IE it uses the center tag OUTSIDE the tables and forces everything in the tables to be centered!

    how can I get around this without closing the center tag in front of absolutely everything then re-opening it
     
    3kau, Mar 20, 2008 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Don't use the <center> tag. It's invalid in the current recommendations. In css, do

    table {margin: 0 auto;}

    cheers,

    gary
     
    kk5st, Mar 20, 2008 IP
  3. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you could use the <center> tag, and then use css
     
    just-4-teens, Mar 20, 2008 IP
  4. itliberty

    itliberty Peon

    Messages:
    1,173
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    or you will have to set your justification within the table..if nothing is set it will take the center..so just add to the table align="left"
     
    itliberty, Mar 20, 2008 IP