Re: table-cell
- From: Jeff <jeff@xxxxxxxxxxxxxxx>
- Date: Wed, 26 Nov 2008 17:31:16 -0500
Jukka K. Korpela wrote:
Jeff wrote:
I'd like to turn on and off table cells so I can display differening
data.
Since you are apparently doing this with client-side scripting (why else would you ask?), why don't you simply manipulate the document tree?
Server side in this case. And, I've never found manipulating the DOM tree to be simple. That's a bit of code to extract data from a table and then rebuild it and it's contents and attributes.
If
you depend on client-side scripting for some functionality, why would you _also_ depend on CSS support being enabled?
.some_row_class{
display: none;
}
Who turns that off?
Your text and your heading refer to cells, but your dummy class name suggests that this is about rows.
.some_row_class{
display: table-cell;
}
<td>, I'm not actually using a class to call them.
IE does not support any of the display property values that start with "table-".
However, if you really want to make yourself dependent on CSS as well as scripting, why don't you use just the first one of the rules and dynamically change the class property of a cell or row to "some_row_class" or to something else, depending on whether you want it to be displayed or not?
I think instead of turning on what I wanted, I'll turn off what I don't.
Is there a way to set an "element" back to it's default? Such as unsetting a width or in this case or display in this case. I can't find it.
Jeff
.
- Follow-Ups:
- Re: table-cell
- From: phil-news-nospam
- Re: table-cell
- From: Jukka K. Korpela
- Re: table-cell
- References:
- table-cell
- From: Jeff
- Re: table-cell
- From: Jukka K. Korpela
- table-cell
- Prev by Date: Re: table-cell
- Next by Date: Re: table-cell
- Previous by thread: Re: table-cell
- Next by thread: Re: table-cell
- Index(es):
Relevant Pages
|