"shake" effect not working well on inline elements
Hi,
I'm sure this is a question that has been brought up before, but I'm not able to find the keywords to bring those posts up.
When I try to "shake" an inline <a> element, the <a> gets dumped down to the next line, and the words are broken up. It's almost like the width of the parent <div> is too small or something.
I realize jQueryUI changes some CSS to allow it to shake the element - but is there anything I can do to force it to shake in place?
I'm using FF 3.6.
HTML
- <form method = "post" action = "/path/to/page/">
- <div>
- Name: <input type = "text" name = "name" id = "category-name"/>
- <a class = "button" id = "new-category-create">
- <img src = "/path/to/image.png" alt = "Create" />Create category</a>
- <input type = "submit" class = "hidden" name = "n_c_s" id = "n-c-s"/>
- </div>
- </form>
JS
- $("#new-category-create").effect('shake',{distance:4,times:2},50);
The CSS for .button is big so I won't paste it here. It doesn't set position or width, but does set line-height.
Thanks.