View Full Version : Horizontal Accordion script: "align" to the right side?

05-18-2010, 12:13 PM
1) Script Title: Horizontal Accordion script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/haccordion.htm

3) Describe problem:

How can I "align" the tabs (DIVs) to the right side?

Because by default all the tabs reside ("align") on the left side, and according to my webpage layout, it would visually be best to make them align to the opposite.

Edit: I don't know if you can understand me, I mean the tabs pauses on the left side, and I need an opposite effect which have the tabs pauses on the right side. Better check out the demo on DD page in 2) above.

Should I look into the js file or the css file to achieve this? Any clues will be appreciated!

I am a student and I fell in love with this website while a friend refer it to me. It's just so great.:)

05-18-2010, 09:06 PM
Hmm inside the .css file, you might try making the change in red below:

.haccordion li{
margin: 0;
padding: 0;
display: block; /*leave as is*/
width: 100%; /*For users with JS disabled: Width of each content*/
height: 200px; /*For users with JS disabled: Height of each content*/
overflow: hidden; /*leave as is*/
float: right; /*leave as is*/