[Javascript] visibility of a table column
Paul Novitski
paul at juniperwebcraft.com
Wed Oct 11 11:06:26 CDT 2006
At 10/10/2006 01:09 PM, John Deighan wrote:
>I need to set the visibility of an entire column to hidden or visible.
If it turns out that {visibility: collapse;} has cross-browser
issues, it might also be worth experimenting with setting the cell
properties to {width: 0; height: 0; overflow: hidden;}.
<tr>
<td>blah</td>
<td class="hideable">Disappearing content</td>
<td>blah</td>
</tr>
Whichever CSS method you use, if you know which columns you'll need
to collapse ahead of time, applying a class to the markup and setting
the class properties in the stylesheeet means not having to cycle
through the table affecting the Nth cell on every row (which isn't
difficult, of course, just potentially humanly noticeably
time-consuming for very large tables).
And there goes my adverb quota for the morning!
Regards,
Paul
More information about the Javascript
mailing list