How do i do this

Discussion in 'HTML & Website Design' started by oo7ml, Aug 14, 2007.

  1. #1
    How do i make a table stay in the center width and the center height no matter what resolution the screen is at

    eg - http://www.ecospacestudios.com/indexflash.html - i know this is FLASH but how would i do this in HTML

    thanks
     
    oo7ml, Aug 14, 2007 IP
  2. save

    save Active Member

    Messages:
    1,047
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    80
    #2
    You will be best to use css and make use of the margin class
     
    save, Aug 14, 2007 IP
  3. bpb2221

    bpb2221 Peon

    Messages:
    83
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Did you solve this problem? Because it is staying in the center.
     
    bpb2221, Aug 14, 2007 IP
  4. webcosmo

    webcosmo Notable Member

    Messages:
    5,840
    Likes Received:
    153
    Best Answers:
    2
    Trophy Points:
    255
    #4
    Two things you have to do.
    For body define css for width 100%,height 100%
    Use table with one TR having valign="middle"
    Place this table on a <center>....</center>

    Hopefully this would work.
     
    webcosmo, Aug 14, 2007 IP
  5. almondj

    almondj Peon

    Messages:
    768
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    0
    #5
    Nice looking site! Very professional.
     
    almondj, Aug 14, 2007 IP
  6. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I thought align: center was deprecated?

    in css stylesheet,
    
    table { 
      margin-left: auto; 
      margin-right: auto; 
    }
    
    Code (markup):
    This will work with a table, a non-background image, a div, maybe even a Flash element.
     
    Stomme poes, Aug 15, 2007 IP