ak3nat0n
ak3nat0n

Reputation: 6288

jquery toggle effect resetting element width

For some reason when i use the jquery toggle function with a speed option, the element width is animated at the same time (from 50% of the width to its full extent). I don't recall noticing it in previous version of jquery. Is there a way to make sure the toggle doesn't touch the width? The problem is that i have some floated content in the element, so when toggled , the floated layout is broken until the animation is completed. Any ideas on how to fix this?

i am using the latest version of jquery : 1.3.2.

Upvotes: 1

Views: 1654

Answers (1)

Chris Van Opstal
Chris Van Opstal

Reputation: 37547

If you just want to toggle along the vertical axis, take a look at the slideToggle function.

Upvotes: 4

Related Questions