John Magnolia
John Magnolia

Reputation: 16803

jquery fade in adding inline style to span

When using the fadeIn for a hidden span element, jquery adds display:inline to the inline styles. I understand why it does this because by default a span is a inline element although how do I set it to always display:block;

I have to use a <span> because:

Upvotes: 0

Views: 690

Answers (1)

Matt Ball
Matt Ball

Reputation: 359966

You can use .animate() instead of .fadeIn(), which (I think) won't change the display property while animating.

Upvotes: 2

Related Questions