HTML Table question

Out of context: Reply #7

  • Started
  • Last post
  • 7 Responses
  • lukus_W0

    It's not that complicated ... using a table to position elements is a bad idea.

    The HTML:

    <div id="container">
    <!-- replace this comment with yr embed code -->
    </div>

    The CSS:

    div#container {
    position: relative;
    top: 50%;
    left: 50%;
    width: 300px; /*change this to whatever you require */
    height: 200px; /*change this to whatever you require */
    margin-left: -150px; /*equal to half the width */
    margin-top: -100px; /*equal to half the height */
    }

    • <Continuity
    • <ukit
    • <<<<<<<<<<<<<<<<<<<<...ukit
    • < He's right. Tables for positioning is deprecated. Tables should only be used for tabular data.fyoucher1

View thread