开发者

jQuery Horizontal Accordion Space To Far Right Whilst Animating

开发者 https://www.devze.com 2023-01-13 22:07 出处:网络
I\'ve created a horizontal accordion in jQuery, starting here as a base: http://www.webdesign.org/html-and-开发者_开发问答css/tutorials/jquery-examples-horizontal-accordion.15528.html

I've created a horizontal accordion in jQuery, starting here as a base:

http://www.webdesign.org/html-and-开发者_开发问答css/tutorials/jquery-examples-horizontal-accordion.15528.html

When it animates, a small amount of space is added to the far right which causes the tabs on the right hand side to move a bit. It doesn't look very good. It's all the more noticeable on my accordion with the white background and the single pixel border around it all.

Can anyone suggest a solution to this problem? Perhaps some kind of hack to keep the items to the right in a fixed position?

My accordion is as below where each | is a tab image and its content is displayed to the right of it (the far left tab is open below):

| content | | |

Many thanks,

Sam


Can I see your page and code? From my guess it sounds like you should try

position: fixed; max-width: 600px; /*example width */

This normally does the trick.

0

精彩评论

暂无评论...
验证码 换一张
取 消