W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2009

[whatwg] multiple <tbody>s in <table>

From: ddailey <ddailey@zoominternet.net>
Date: Thu, 19 Mar 2009 16:25:29 -0400
Message-ID: <BCB0D72E84FA404995DB87FC18AFF33D@disxgdg31szkx7>
I recall a while back trying to figure out how to style columns of a complex table that occured below the nth
row of a table. I discovered that if I just used <col style> and moved those <col>'s down to the appropriate row,
IE was okay with that and did what I wanted but the other browsers not only didn't but became very upset with me.

So instead, I created multiple <tbody> tags and applied the styling cols just before the second <tbody>.

It rather worked (or at least it did for most web users). Nowadays, the trick still seems to work in IE, but causes just as much problem in other browsers (and maybe a wee bit more) as it used to.

I gather from my cursory look at the treatment of <table> and <tbody> in HTML5, that my legacy content should be resuscitated in HTML5. Am I correct in thinking that <tbody> will function sort of like <colgroup> but for rows instead of columns and that applying separate styles to different <tbody>s in a table will be the way to do things in the spec?

cheers
David


http://www.google.com/search?as_q=svg&as_sitesearch=.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090319/9d42e563/attachment.htm>
Received on Thursday, 19 March 2009 13:25:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:47:49 GMT