Re: scrolling HTML tables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I usually say go ahead and use thead and tbody for semantic completeness.  If 
you're doing anything funky with Javascript, then you can "group" table rows 
by having multiple table bodies (yes, that's legal!) and then operate on each 
tbody separately.

Don't waste time with tfoot.  It's broken.  Completely.  The W3C had this 
brilliant idea to require tfoot to go before tbody, so if you have a footer 
row it appears before the body unless you have a browser that knows to shift 
it to the end of the table, out of lexical order.  Such a browser does not 
exist.  It's completely backward-incompatible.  It's one of the dumbtest 
things the W3C has ever done.

But yeah, tbody and thead are fine, go ahead and use those. :-)  If nothing 
else they're useful for when you start manipulating the table with 
Javascript.

On Sunday 13 May 2007, Richard Lynch wrote:
> On Thu, May 10, 2007 11:45 am, C.R.Vegelin wrote:
> > I hope it's not the wrong place to ask, but has anyone experience with
> > scrolling HTML tables ?
>
> Actually, it *is* the wrong place to ask... :-v
>
> > According http://www.w3schools.com/tags/tag_thead.asp
> > "The thead, tfoot and tbody elements enable you to group rows in a
> > table.
> >  When you create a table, you might want to have a header row, some
> > rows with data, and a row with totals at bottom.
> >  This division enables browsers to support scrolling of table bodies
> > independently of the table header and footer."
> >
> > I don't want to reinvent the wheel in own software.
> > Or is it better to ignore these tags because of bad browser support ?
>
> I've never seen any browser do anything useful with these goofy tags...
>
> But the Designers seem to luv them...
>
> If you really want scrolling, you'd better put them in a DIV or
> IFRAME, I think.
>
> --
> Some people have a "gift" link here.
> Know what I want?
> I want you to buy a CD from some indie artist.
> http://cdbaby.com/browse/from/lynch
> Yeah, I get a buck. So?


-- 
Larry Garfield			AIM: LOLG42
larry@xxxxxxxxxxxxxxxx		ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux