Table question

Discussion in 'HTML' started by richard, Dec 31, 2007.

  1. richard

    richard Guest

    http://littleworldofours.com/1960d.html

    I know you're gonna run it through the validator. BTDT.
    What cleanup is needed will be done later.

    Locate "EBB TIDE".
    What I want to do is quite simple, but when I try it, I get an
    erroneous table cell that should not be there.

    On the very right side of each entry are two table cells that show a
    "Week" and below it shows a number.

    1)EBB TIDE.............. .................... Jan 02
    2)Bobby Freeman..... Josie 872......11
    3)Roy Hamilton......... Epic 9068

    In rows 2 and 3 above, I want only the table cells to show as a single
    cell as normal. Then in column 3, merge rows 2 and 3.

    However, when I try a rowspan, it doesn't work right.

    So where do I put the rowspan to make it right?
    richard, Dec 31, 2007
    #1
    1. Advertising

  2. richard wrote:
    > http://littleworldofours.com/1960d.html
    >
    > I know you're gonna run it through the validator. BTDT.
    > What cleanup is needed will be done later.
    >
    > Locate "EBB TIDE".
    > What I want to do is quite simple, but when I try it, I get an
    > erroneous table cell that should not be there.
    >
    > On the very right side of each entry are two table cells that show a
    > "Week" and below it shows a number.
    >
    > 1)EBB TIDE.............. .................... Jan 02
    > 2)Bobby Freeman..... Josie 872......11
    > 3)Roy Hamilton......... Epic 9068
    >
    > In rows 2 and 3 above, I want only the table cells to show as a single
    > cell as normal. Then in column 3, merge rows 2 and 3.
    >
    > However, when I try a rowspan, it doesn't work right.
    >
    > So where do I put the rowspan to make it right?
    >
    >

    You don't want a *row*span but a colspan.

    <tr>
    <td colspan="2" class="atitle">EBB TIDE</td>
    <td class="wks1">Jan 02</td>
    </tr>

    <tr>
    <td class="artist">Bobby Freeman</td>
    <td class="label">Josie 872</td>
    <td class="wks2" colspan="2">11</td>
    </tr>

    <tr>
    <td class="artist">Roy Hamilton</td>
    <td class="label">Epic 9068</td>
    </tr>




    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Jonathan N. Little, Dec 31, 2007
    #2
    1. Advertising

  3. richard

    richard Guest

    On Mon, 31 Dec 2007 12:45:47 -0500, "Jonathan N. Little"
    <> wrote:

    >richard wrote:
    >> http://littleworldofours.com/1960d.html
    >>
    >> I know you're gonna run it through the validator. BTDT.
    >> What cleanup is needed will be done later.
    >>
    >> Locate "EBB TIDE".
    >> What I want to do is quite simple, but when I try it, I get an
    >> erroneous table cell that should not be there.
    >>
    >> On the very right side of each entry are two table cells that show a
    >> "Week" and below it shows a number.
    >>
    >> 1)EBB TIDE.............. .................... Jan 02
    >> 2)Bobby Freeman..... Josie 872......11
    >> 3)Roy Hamilton......... Epic 9068
    >>
    >> In rows 2 and 3 above, I want only the table cells to show as a single
    >> cell as normal. Then in column 3, merge rows 2 and 3.
    >>
    >> However, when I try a rowspan, it doesn't work right.
    >>
    >> So where do I put the rowspan to make it right?
    >>
    >>

    >You don't want a *row*span but a colspan.
    >
    ><tr>
    > <td colspan="2" class="atitle">EBB TIDE</td>
    > <td class="wks1">Jan 02</td>
    ></tr>
    >
    ><tr>
    > <td class="artist">Bobby Freeman</td>
    > <td class="label">Josie 872</td>
    > <td class="wks2" colspan="2">11</td>
    ></tr>
    >
    ><tr>
    > <td class="artist">Roy Hamilton</td>
    > <td class="label">Epic 9068</td>
    ></tr>


    Huh?
    A column span does just that, merges two or more "columns" in a series
    of rows.

    I have 3 rows, each row has 3 cells.
    row 1 merges col 1 and col 2 with colspan.
    That works fine.
    In rows 2 and 3, I want to merge col 3 as one cell.

    The basic table:
    1...2...3
    4...5...6
    7...8...9

    Output as:

    1........3
    4...5...6
    7...8....

    So how is that done properly?
    richard, Dec 31, 2007
    #3
  4. richard

    Ben C Guest

    On 2007-12-31, richard <> wrote:
    [...]
    > The basic table:
    > 1...2...3
    > 4...5...6
    > 7...8...9
    >
    > Output as:
    >
    > 1........3
    > 4...5...6
    > 7...8....
    >
    > So how is that done properly?


    You need to scale up to the lowest common multiple. Something like this:

    <tr>
    <td colspan="3">1</td>
    <td colspan="3">3</td>
    </tr>

    <tr>
    <td colspan="2">4</td>
    <td colspan="2">5</td>
    <td colspan="2">6</td>
    </tr>

    <tr>
    <td colspan="2">7</td>
    <td colspan="2">8</td>
    <td colspan="2" style="visibility: hidden">9</td>
    </tr>
    Ben C, Dec 31, 2007
    #4
  5. richard wrote:
    > On Mon, 31 Dec 2007 12:45:47 -0500, "Jonathan N. Little"
    > <> wrote:
    >
    >> richard wrote:
    >>> http://littleworldofours.com/1960d.html
    >>>
    >>> I know you're gonna run it through the validator. BTDT.
    >>> What cleanup is needed will be done later.
    >>>
    >>> Locate "EBB TIDE".
    >>> What I want to do is quite simple, but when I try it, I get an
    >>> erroneous table cell that should not be there.
    >>>
    >>> On the very right side of each entry are two table cells that show a
    >>> "Week" and below it shows a number.
    >>>
    >>> 1)EBB TIDE.............. .................... Jan 02
    >>> 2)Bobby Freeman..... Josie 872......11
    >>> 3)Roy Hamilton......... Epic 9068
    >>>
    >>> In rows 2 and 3 above, I want only the table cells to show as a single
    >>> cell as normal. Then in column 3, merge rows 2 and 3.
    >>>
    >>> However, when I try a rowspan, it doesn't work right.
    >>>
    >>> So where do I put the rowspan to make it right?
    >>>
    >>>

    >> You don't want a *row*span but a colspan.
    >>
    >> <tr>
    >> <td colspan="2" class="atitle">EBB TIDE</td>
    >> <td class="wks1">Jan 02</td>
    >> </tr>
    >>
    >> <tr>
    >> <td class="artist">Bobby Freeman</td>
    >> <td class="label">Josie 872</td>
    >> <td class="wks2" colspan="2">11</td>
    >> </tr>
    >>
    >> <tr>
    >> <td class="artist">Roy Hamilton</td>
    >> <td class="label">Epic 9068</td>
    >> </tr>

    >


    Nope I royally screwed up and got it "bass-ackwards", (too much xmas
    cheer I guess)Should be *row*span

    <tr>
    <td colspan="2" class="atitle">EBB TIDE</td>
    <td class="wks1">Jan 02</td>
    </tr>

    <tr>
    <td class="artist">Bobby Freeman</td>
    <td class="label">Josie 872</td>
    <td class="wks2" rowpan="2">11</td>
    </tr>

    <tr>
    <td class="artist">Roy Hamilton</td>
    <td class="label">Epic 9068</td>
    </tr>




    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Jonathan N. Little, Dec 31, 2007
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Williams
    Replies:
    2
    Views:
    1,113
    Jacob Yang [MSFT]
    Aug 12, 2003
  2. Ken Dopierala Jr.

    Do you use <table> or <asp:Table>?

    Ken Dopierala Jr., Jan 12, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    8,617
    Craig Deelsnyder
    Jan 13, 2004
  3. Earl Teigrob
    Replies:
    2
    Views:
    313
    Shintaro
    Feb 21, 2004
  4. Rio
    Replies:
    4
    Views:
    1,181
  5. eBob.com
    Replies:
    5
    Views:
    474
    Martin Honnen
    May 20, 2008
Loading...

Share This Page