| | #1 |
| HyperActive Warrior War Room Member Join Date: 2010 Location: USA
Posts: 171
Thanks: 51
Thanked 15 Times in 14 Posts
|
I want to install an accordion like this Javascript And CSS Tutorial - Accordion Menus | Switch on the Code Would someone tell me how to make it horizontal, so it would expand horizontally (instead of vertically), and the titles (e.g. "Accordion 1" etc.) would also rotate with it, and read from bottom to top. Basically, I want the above example to be rotated by 90 degrees counterclockwise (except the content inside the expanded areas would remain as it is now, text reading from left to right). Thanks for all help! |
| |
| | #2 |
| HyperActive Warrior Join Date: 2011 Location: Edmonton, Alberta
Posts: 120
Thanks: 0
Thanked 25 Times in 23 Posts
|
If you don't mind using jQuery, check these 2 sites out: dev.portalZINE | jQuery - Horizontal Accordion liteAccordion - a horizontal accordion plugin for jQuery On the other hand if you don't want to use jQuery you can just change the animate functions and a bit of the CSS to achieve the effect. In the animate function of the link you provided just modify the width instead of the height values. And in the CSS, modify the height so your elements are taller than they are wide by default and voila! |
| |
|
| Bookmarks |
| Tags |
| accordion, horizontal, make |
| |