[html5] using colspan with nested html tables

Martin Gainty mgainty at hotmail.com
Thu May 8 09:11:16 PDT 2014


<!--colspan counts the number of columns in the NEXT tr just below declaration -->
<!--Also you have one table (not three) -->

<body>
<table border=1 frame=void cellspacing=0 cellpadding=4 style="width: 100%;">
<tr>
<th colspan=20 align=center>
<h2>Limits</h2>
</th>
</tr>
<tr>

<!-- what is the empty space used for? -->
<!-- th align=left valign=bottom colspan=6></th -->


<th align=center valign=bottom colspan=6>Position Limits</th>
<th align=left valign=bottom colspan=4>Aim Order Limits</th>
<th align=left valign=bottom colspan=4>Actual Order Limits</th>
</tr>
<tr>
<td>

<!-- you are in the same table so you dont need a second declaration -->
<!-- table border=1 frame=void cellspacing=0 cellpadding=4 -->
<tr>
<!-- th align=left valign=bottom colspan=6></th -->
<th align=left valign=bottom colspan=2>Book</th>
<th align=left valign=bottom colspan=2>Product</th>
<th align=left valign=bottom colspan=2>Cluster</th>
<th align=left valign=bottom colspan=2>Buy</th>
<th align=left valign=bottom colspan=2>Sell</th>
<th align=left valign=bottom colspan=2>Buy</th>
<th align=left valign=bottom colspan=2>Sell</th>
</tr>
<tr>
<td>

<!-- why do you want another table ...why not use the initial table declaration from the top ? -->
<!-- table class="sortable" border=1 frame=void cellspacing=0 cellpadding=4 style="width: 100%;" -->
<tr>
<th align=center valign=bottom>Product</th>
<th align=center valign=bottom>Cluster</th>
<th align=center valign=bottom>Symbol</th>
<th align=center valign=bottom>Ticker</th>
<th align=center valign=bottom>Market</th>
<th align=center valign=bottom>MaxShort</th>
<th align=center valign=bottom>Min</th>
<th align=center valign=bottom>Max</th>
<th align=center valign=bottom>Min</th>
<th align=center valign=bottom>Max</th>
<th align=center valign=bottom>Min</th>
<th align=center valign=bottom>Max</th>
<th align=center valign=bottom>Min</th>
<th align=center valign=bottom>Max</th>
<th align=center valign=bottom>Min</th>
<th align=center valign=bottom>Max</th>
<th align=center valign=bottom>Min</th>
<th align=center valign=bottom>Max</th>
<th align=center valign=bottom>Min</th>
<th align=center valign=bottom>Max</th>
</tr>
<tr>
<td>AMID</td>
</body>

Buena Suerte,
Martin 
______________________________________________ 

 _____ _          _____             _          _____     ___ _                        _____               _     _   _         
|_   _| |_ ___   |  _  |___ ___ ___| |_ ___   |   __|___|  _| |_ _ _ _ ___ ___ ___   |   __|___ _ _ ___ _| |___| |_|_|___ ___ 
  | | |   | -_|  |     | . | .'|  _|   | -_|  |__   | . |  _|  _| | | | .'|  _| -_|  |   __| . | | |   | . | .'|  _| | . |   |
  |_| |_|_|___|  |__|__|  _|__,|___|_|_|___|  |_____|___|_| |_| |_____|__,|_| |___|  |__|  |___|___|_|_|___|__,|_| |_|___|_|_|
                       |_|                                                                                                    

  


> Date: Wed, 7 May 2014 17:31:07 -0600
> From: larry.martell at gmail.com
> To: help at lists.whatwg.org
> Subject: Re: [html5] using colspan with nested html tables
> 
> On Wed, May 7, 2014 at 4:44 PM, Bill Barron <Bill.Barron at guidestone.org> wrote:
> > At StackOverflow, Larry specified that the requirement for nested tables stems from the table sorting code he is using, not from the need to style the table in novel ways with CSS.
> >
> > I would recommend formatting the tables using W3C standard tags including thead, tbody, caption, colgroup and col. Then I would reevaluate the table-sorting code I am using. Consider something that sorts rows within the <tbody> tag when th elements in very last row within <thead> element are clicked.
> 
> 
> Thanks for the reply. I fixed this by doing just what you said - I
> added a thead and modified the js code to use the last rows of the
> thead.
> 
> 
> >
> > On May 7, 2014, at 4:13 PM, "Brian Tremblay" <webmaster at tsmchughs.com> wrote:
> >>
> >>> On 5/7/14, 12:24 PM, Larry Martell wrote:
> >>> Please see my question at stackoverflow:
> >>>
> >>> http://stackoverflow.com/questions/23505433/using-colspan-with-nested-html-tables
> >>
> >> Are you expecting an answer here to your question on stackoverflow? Or inviting people to go to stackoverflow and answer there? I don't have an account on stackoverflow. If you want an answer here, you should probably ask here.
> >>
> >> I did look over the question quickly, and I can't see why you need to nest tables. You should be able to do pretty much anything you want with css applied to a single table.
> >>
> >> --
> >> Brian Tremblay
> >> _______________________________________________
> >> Help mailing list
> >> Help at lists.whatwg.org
> >> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org
> > _______________________________________________
> > Help mailing list
> > Help at lists.whatwg.org
> > http://lists.whatwg.org/listinfo.cgi/help-whatwg.org
> _______________________________________________
> Help mailing list
> Help at lists.whatwg.org
> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/help-whatwg.org/attachments/20140508/6e0870d8/attachment-0002.htm>


More information about the Help mailing list