Click to See Complete Forum and Search --> : How 2 hide and reduce a table


Caliban
07-08-2003, 08:59 PM
Hi,

I hide a table with the following command:

<BODY ONLOAD= 'javascript:document.getElementById("tb_nodes").style.visibility="hidden;"'>

where tb_nodes is the table's id.

Below the table there is more code (i.e., a tree based on the data stored in the table). The table has 1000 rows approximately.

When the table is hidden, you can see the space occuped by the table anyway.

My answer is: how can I do to "reduce" the size of the entire table? (not to 0, but as little as it can be)

Any ideas?

Thanx in advance.

Khalid Ali
07-08-2003, 09:10 PM
use
style.display="none"
to make it hidden and then
style.display="block"

to make it display

Caliban
07-08-2003, 09:22 PM
THANX A LOT, KHALID! :D

IT REALLY WORKED!
THAT'S WHAT I NEEDED! :cool:

Khalid Ali
07-08-2003, 09:24 PM
:D
My pleasure