What's better? Coding in DIV or Tables?

Discussion in 'HTML & Website Design' started by Untitled, Aug 27, 2007.

  1. bluetrendz

    bluetrendz Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #21
    DIV is the best :)
     
    bluetrendz, Aug 30, 2007 IP
  2. jamesicus

    jamesicus Peon

    Messages:
    477
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #22
    Here is an exemplar of a "floating box" layout ..........

    http://jp29.org/floatbox.htm

    .......... and the accompanying CSS code:

    /* fbox - Style sheet */

    h1 {
    text-align: center;
    }

    h2 {
    text-align: center;
    }

    div.topbox {
    border: 1px solid #000;
    float: left;
    width: 96.5%;
    }

    div.onebox {
    border: 1px solid #000;
    float: left;
    width: 24%;
    }

    div.twobox {
    border: 1px solid #000;
    float: left;
    width: 24%;
    }

    div.threebox {
    border: 1px solid #000;
    float: left;
    width: 24%;
    }

    div.fourbox {
    border: 1px solid #000;
    float: left;
    width: 24%;
    }

    p.text {
    padding: 0.5em;
    }
     
    jamesicus, Aug 31, 2007 IP
  3. karnetics

    karnetics Peon

    Messages:
    254
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #23
    If you know what you are doing then divs, if you don't then tables.
     
    karnetics, Aug 31, 2007 IP
  4. Mooseman

    Mooseman Peon

    Messages:
    453
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #24
    This has been answered godknowshowmany times already.

    The search function is a pretty good tool you know :)
     
    Mooseman, Aug 31, 2007 IP
  5. tennisplayer89

    tennisplayer89 Peon

    Messages:
    387
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #25
    divs all the way
     
    tennisplayer89, Aug 31, 2007 IP
  6. Syke

    Syke Peon

    Messages:
    233
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #26
    I think DIV is better alternative cause you can modify it externally through css very easily.
     
    Syke, Aug 31, 2007 IP
  7. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0