#11303 closed bug (invalid)
FadeIn doesn't keep block format
Reported by: | ryannaddy | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | effects | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
While using fadeIn() on an <a> tag with a css "block" display type, it removes the block format when it fades in. It seems to do the same on other inline elements as well. It works fine on the <div> tag though.
Example: http://jsfiddle.net/NZ3eF/1/
Change History (2)
comment:1 Changed 11 years ago by
Component: | unfiled → effects |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Simplified testcase: http://jsfiddle.net/mofle/NZ3eF/3/
The problem is that you have a rule "display: none" after "display: block" which overwrites it. Since the display value is none, jQuery will instead use the default display value of the a-tag, which is "inline".
You can work around this by doing something like this instead: