Virtual Mechanics: Community Forums and FAQs
Virtual Mechanics: Community Forums and FAQs
User's Created Tips and Insights
An expand and collapse FAQ example|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Honorary 'Aussie' Mechanic |
I can’t seem to find the thread now, but quite some time back, someone asked the question as to how to create an FAQ style of questions and answers where the answers will expand under the questions and force down the objects below it.
Well, I have managed to tweak some code I came across to accomplish this. It is a mixture of HTML, CSS and javascript. Whilst it won’t force down other Site Spinner objects on the page below, it will expand the items within the code object itself. I have also set each expanded answer to collapse when clicking on a different question. That way, you only need to leave enough room below the code object to accommodate for the largest answer. The procedure could also be used to create a custom menu. I have quickly thrown together a quick example of how it works, and the code used to do it here I am heading off early in the morning for a long overdue holiday, so if anyone has any comments or questions, please be patient for a couple of weeks until I get back. Terry This message has been edited. Last edited by: postyr, |
||
|
|
Guru 'Geezer' Mechanic |
I think the thread you were looking for is here.
|
|||
|
|
Junior Mechanic |
Thanks Larryd I was able to use the link and create a Q&A that took up much less real estate and looked better too.
O 2 B Max |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|
Virtual Mechanics: Community Forums and FAQs
Virtual Mechanics: Community Forums and FAQs
User's Created Tips and Insights
An expand and collapse FAQ example
