HTML help

I’ve tried Google, I’ve tried SMDB, I’ve tried help files (shudder) and I’m about at my wit’s end.

What I’d really like to do with my homepage in an effort to condense the content on some of my longer pages is something like this…

Q: Question 1
Q: Question 2
Q: Question 3

If a person browsing the site clicks on question 1, then the page does this:

Q: Question 1
A: Answer 1

Q: Question 2
Q: Question 3

I’ve tried using the “hide” style via Javascript, but all that does is make the text invisible; the space is still there. Does anyone know of a method to do what I’ve envisioned above? (Aside from the old “just make a new page” thing.)

You could probably adapt this code pretty easily.

The proper method to do this is with <div></div> pairs. Search for a tutorial on that.

Here is a tutorial on that subject.

http://hotwired.lycos.com/webmonkey/01/12/index1a.html?tw=authoring

You’re on the right track with the styles thing. What you need to do is access the “display” style. Set it to “none” to hide and collapse the element. Set it to “inline-block” to show it again.

Thanks everyone. It’s working perfectly! :slight_smile: