Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 17th Aug 2011, 06:22 PM   #1
HyperActive Warrior
War Room Member
 
Join Date: 2010
Location: USA
Posts: 171
Thanks: 51
Thanked 15 Times in 14 Posts
Default
Accordion - How To Make It Horizontal -- Please Help!
Share on: 
fb share twitter share gplus share more share

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!
halmo is offline  
Unread 18th Aug 2011, 02:07 PM   #2
HyperActive Warrior
 
unnatural's Avatar
 
Join Date: 2011
Location: Edmonton, Alberta
Posts: 120
Thanks: 0
Thanked 25 Times in 23 Posts
Default
Re: Accordion - How To Make It Horizontal -- Please Help!
Share on: 
fb share twitter share gplus share more share

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!
unnatural is offline  
Closed Thread


Bookmarks

Tags
accordion, horizontal, make


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 12:58 PM.