![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Following is a snippet of html in which I hide a whole table and try to hide a single row. Here is my question (plz don't chew my head off if its css related instead): Why does the divTable <div> Hide/Show work but not the divRow version? What I'm trying to do here is simultaneously hide 1 or more rows (possibly with nested divs as well). This would allow for an elegant an well performing base for an html base treetable (but I guess that's not relevant). |
#2
| |||
| |||
|
|
F. Da Costa wrote on 03 Dec 2003: Following is a snippet of html in which I hide a whole table and try to hide a single row. Here is my question (plz don't chew my head off if its css related instead): Why does the divTable <div> Hide/Show work but not the divRow version? What I'm trying to do here is simultaneously hide 1 or more rows (possibly with nested divs as well). This would allow for an elegant an well performing base for an html base treetable (but I guess that's not relevant). There is a simple reason for why this doesn't work: it's illegal. From the Strict DTD (it's the same in Transitional), abridged: !ELEMENT TABLE - - (CAPTION?, (COL*|COLGROUP*), THEAD?, TFOOT?, TBODY+) The element names in parentheses are the allowed contents of the TABLE element. Once you get to TD elements, you can start including anything that's classed as a block-level or inline element, but not before. Read that approx 45m after my post on htmlhelp.com. |
|
However, you might be pleased to know that the plus after TBODY in the list above means that you can include one or /more/ TBODY elements. You can use them to perform your row grouping and hide or show them (use the display property, with none and table-row-group). Yep, I figured that out and it indeed works (to a certain extend) because (it looks like) nested tbodies are not allowed. |
|
Mike |
![]() |
| Thread Tools | |
| Display Modes | |
| |