HTML Table question

Out of context: Reply #5

  • Started
  • Last post
  • 7 Responses
  • lukus_W0

    Okay, sorry - I was being an idiot in the notes above.

    1. Do not use a table.
    2. Place the SWF in a DIV.
    3. Center the DIV:

    The procedure for centering the DIV using CSS goes like this:

    1 -> Place the top of the DIV at 50%
    2 -> Place the left of the table at 50%
    3 -> Give the DIV a negative left margin, equal to half it's width
    4 -> Give the DIV a negative top margin, equal to half it's height

    The reason this works, is due to the fact that a CSS margin can hold a negative value. You use the negative margin to pull the table back into position.

    • *of the table at 50% = of the DIV at 50%lukus_W
    • Overly complicated. I got it working already ^^CygnusZero4
    • loldetritus
    • Hmm.. but tables are bad, unless your displaying tablular data.lukus_W
    • gah, *you'relukus_W
    • confusingHAYZ1LLA
    • This is something very basic, being played on 1 kind of computer, in 1 browser.CygnusZero4

View thread