Colspan

Discussion in 'HTML & Website Design' started by Realm, Dec 28, 2006.

  1. #1
    Can anyone provide a brief meaning of colspan? I looked it up online but still didn't understand it
    thanks
     
    Realm, Dec 28, 2006 IP
  2. kajakske

    kajakske Well-Known Member

    Messages:
    139
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    165
    #2
    It's like the "Merge cells" feature in Excel ...

    When you have a table with for example 3 rows and 4 columns: (X = 1 cell)
    XXXX
    XXXX
    XXXX

    You can specify colspan="2" on the first cell and have this
    X XX -> 3 cells of which the first is wider ...
    XXXX
    XXXX
     
    kajakske, Dec 28, 2006 IP
  3. Realm

    Realm Well-Known Member

    Messages:
    1,797
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    160
    #3
    lets say they were all like this:

    XX X X
    X XX X
    X X XX


    how do you make them like this: (putting them together with each other)
    XXXX
    XXXX
    XXXX

    thanks for the help
     
    Realm, Dec 28, 2006 IP
  4. MTbiker

    MTbiker Well-Known Member

    Messages:
    2,536
    Likes Received:
    123
    Best Answers:
    0
    Trophy Points:
    170
    #4
    Just get rid of all the colspan tags, and in all the rows (tr) with only 3 cells (td), just add a fourth td.
     
    MTbiker, Dec 28, 2006 IP