E
Erwin Moller
Hi all,
Is it possible to collapse certain columns in a rendered table?
I have been fiddling around with CSS and visibiliy: collapse, but I cannot
get it working in NN6 and IE6 and firefox.
What I want/tried is something like this:
<STYLE TYPE="text/css">
TABLE {border-collapse: collapse;}
.hidecol {visibility: hidden;}
</STYLE>
<table>
<col><col class="hidecol"><col>
<tr>
<td>row1col1</td>
<td>row1col2</td>
<td>row1col3</td>
</tr>
<tr>
<td>row2col1</td>
<td>row2col2</td>
<td>row2col3</td>
</tr>
</table>
But even before I use JS to manipulate the visibility of the second column,
things go wrong: the second column is just displayed.
I am fairly new to CSS, not to JS.
Can somebody help me solving this?
In the end I want the client to choose which columns are visible in the
table. (Preferably on all major browsers)
Thanks for your time.
Regards,
Erwin Moller
Is it possible to collapse certain columns in a rendered table?
I have been fiddling around with CSS and visibiliy: collapse, but I cannot
get it working in NN6 and IE6 and firefox.
What I want/tried is something like this:
<STYLE TYPE="text/css">
TABLE {border-collapse: collapse;}
.hidecol {visibility: hidden;}
</STYLE>
<table>
<col><col class="hidecol"><col>
<tr>
<td>row1col1</td>
<td>row1col2</td>
<td>row1col3</td>
</tr>
<tr>
<td>row2col1</td>
<td>row2col2</td>
<td>row2col3</td>
</tr>
</table>
But even before I use JS to manipulate the visibility of the second column,
things go wrong: the second column is just displayed.
I am fairly new to CSS, not to JS.
Can somebody help me solving this?
In the end I want the client to choose which columns are visible in the
table. (Preferably on all major browsers)
Thanks for your time.
Regards,
Erwin Moller