Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Table question

Reply
Thread Tools

Table question

 
 
richard
Guest
Posts: n/a
 
      12-31-2007
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?


 
Reply With Quote
 
 
 
 
Jonathan N. Little
Guest
Posts: n/a
 
      12-31-2007
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
 
Reply With Quote
 
 
 
 
richard
Guest
Posts: n/a
 
      12-31-2007
On Mon, 31 Dec 2007 12:45:47 -0500, "Jonathan N. Little"
<(E-Mail Removed)> 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?
 
Reply With Quote
 
Ben C
Guest
Posts: n/a
 
      12-31-2007
On 2007-12-31, richard <(E-Mail Removed)> 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>
 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      12-31-2007
richard wrote:
> On Mon, 31 Dec 2007 12:45:47 -0500, "Jonathan N. Little"
> <(E-Mail Removed)> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
table.rows vs. table.getElementsByTagName (+ a regex question) eBob.com Javascript 5 05-20-2008 10:58 AM
Table/table rows/table data tag question? Rio HTML 4 11-05-2004 08:11 AM
Tying up Port Login table entries with Port Table Entries in CISCO SNMP John Ramsden Cisco 0 07-24-2004 04:03 PM
Difference between routing-table and forwarding-table Joachim Krais Cisco 2 11-23-2003 02:52 PM
Could not load type VTFixup Table from assembly Invalid token in v-table fix-up table. David Williams ASP .Net 2 08-12-2003 07:55 AM



Advertisments