Christian Benincasa
Christian Benincasa

Reputation: 1215

jQuery slideToggle animation shifts other elements

When I click on the element I've registered as the trigger for the slideToggle, the element ticks a few pixels to the right for seemingly no reason. I assume it has to do with the CSS somewhere, but I cannot identify the problem.

Here is a working example of the problem: http://jsfiddle.net/ZmyGq/ . When 'Advanced Search' is pressed it will tick slightly the right and then back to its original position when clicked again.

Upvotes: 1

Views: 1250

Answers (1)

adeneo
adeneo

Reputation: 318342

It's because the <a> element is not a block element, try this FIDDLE

Upvotes: 2

Related Questions