Reputation: 16803
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:
<a>
Upvotes: 0
Views: 690
Reputation: 359966
You can use .animate()
instead of .fadeIn()
, which (I think) won't change the display
property while animating.
Upvotes: 2