Forum Moderators: not2easy

Message Too Old, No Replies

visibility:collapse problems

Cant get it to work in IE

         

Karma

3:28 pm on Sep 25, 2007 (gmt 0)

10+ Year Member



Hey all,

I'm having some issues with 'visibility:collapse'. The text is hidden when rendered through FF until the button is pressed, but IE just displays it anyway, pressed or not.

Heres my code....

-----------------------------------------------------------------

<input type="button" value="Display the text..." onclick="document.getElementById('myTable').style.visibility = 'visible'">

<table id="myTable" style="visibility:collapse">
<tr><td>This text should not be shown until the button is pushed!</td></tr>
</table>

<HR>

-----------------------------------------------------------------

Any ideas?

Thanks all :)

Marshall

12:21 am on Sep 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Karma,

I do not think visibility:collapse is supported fully. You may want to try visibility:hidden which has better support.

Marshall