collapse part of page - Did it by mistake once, now i want to do it i cant

C

chris

a short while ago i was playing arround with the <DIV tag and wanted some
text to dissapear - while i was doing this i had a situation where i could
hide the info i wantd to hide but it would move the rest of the page up to
take up the space.

for example

line 1
line 2
line 3
line 4
i managed to hide line 3 ended up with

line 1
line 2
line 4

at that time i wanted to end up with
line 1
line 2

line 4

NOW i want to do what i did by acciident and cant figure it out.

any help would be great
 
R

RobG

chris said:
a short while ago i was playing arround with the <DIV tag and wanted some
text to dissapear - while i was doing this i had a situation where i could
hide the info i wantd to hide but it would move the rest of the page up to
take up the space.

for example

line 1
line 2
line 3
line 4
i managed to hide line 3 ended up with

line 1
line 2
line 4

at that time i wanted to end up with
line 1
line 2

line 4

NOW i want to do what i did by acciident and cant figure it out.

Instead of:

theDiv.style.display = 'none' or '';

use:

theDiv.style.visibility = 'hidden' or 'visible';
 
R

Randy Webb

chris said the following on 10/5/2005 12:39 AM:
a short while ago i was playing arround with the <DIV tag and wanted some
text to dissapear - while i was doing this i had a situation where i could
hide the info i wantd to hide but it would move the rest of the page up to
take up the space.

for example

line 1
line 2
line 3
line 4
i managed to hide line 3 ended up with

line 1
line 2
line 4

at that time i wanted to end up with
line 1
line 2

line 4

NOW i want to do what i did by acciident and cant figure it out.

any help would be great

elem.style.display = "none";

Follow-Up left at comp.lang.javascript, removed the wannabe
alt.comp.lang.javascript
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top