Layer positioning with visibility

They have: 268 posts

Joined: May 1999

Hi all,

I am working on making a Javascript that would allow me to make a menu tree.

The problem I am running into is that a layer takes up space even when the visibility is set to hidden.

I want the layer to take up zero space when hidden and to take up needed space when visible.

Am I making myself clear?

Can a division have no space when hidden?

Check out what I already have at http://shoutingrock.org/test.htm

Thanks

------------------
My goal in life is found in Phillipians 4:8-9

My goal in life is found in Phillipians 4:8-9
shoutingrock.org/troop214

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

Hi Jim,

I have a suggestion that might solve your problem.
Maybe you should try the tag <nospace> just before you start the new layer.
I'm not sure if every browser accepts it (IE5 does), but hey, at least it's something.

Jack

Shakespeare: onclick || !(onclick)

They have: 268 posts

Joined: May 1999

Thanks for the thought.

That didn't help. Still have space for the hidden layers.

Any other thoughts

------------------
My goal in life is found in Phillipians 4:8-9

My goal in life is found in Phillipians 4:8-9
shoutingrock.org/troop214

They have: 89 posts

Joined: Sep 1999

Take a look at this script:
http://dynamicdrive.com/dynamicindex1/navigate1.htm

maybe you can adapt it to what you are looking for, which I assume is a "collapsable" menu.

[This message has been edited by RC (edited 10 April 2000).]

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi,

Try placing nothing between the div tags. Declare each hidden text as a cell of a global array. Then pass the appropriate cell number to the called functions.

Hope this helps.

Vinny

------------------
GrassBlade: cut&paste javascript

Where the world once stood
the blades of grass cut me still

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.