HTML/CSS Help.

Permabanned
Joined
25 Oct 2004
Posts
9,078
Hiya,

Just been thinking about different things I can do to make our site a little more user friendly and thaught about possibly adding in a new feature to help with displaying large blocks of text. Basically what I wanted to do was have numerous options/questions displayed and when the user clicks on one of those questions or options, it drops down a text box below the question showing the answer or text.

Any idea how i would go about this or even what its called so i can maybe google it :D

Any assistance appreciated.
 
best bet would be to use javascript, have the text in a div that is hidden, and then when the user clicks the question/option, javascript will change the div style so it is shown in the space, and then if they change option again, javascript will again unhide the option selected, and rehide the one currently shown.

thats your best bet imo or you could try doing it with php though this wont be as good as it will require a page reload so if the site is small enough might aswell be done with standard html
good luck
 
Any examples of this sort of thing in action as I still dont quiet understand how it would function, tell you why i thaught of something like this, the page i wish to implement it on is at present just a giant wall of text, and i would like to break it down into headers/questions that when clicked on reveal the answer. rather than a user have to scroll down for ages to find the text they want.
 
Last edited:
Back
Top Bottom