In the following demonstration, I am trying to apply bouncing animation to three elements, a div, p-tag and a-tag , its not working for the a-tag.
Any clues what might be wrong ?
link:
Join Stack Overflow to learn, share knowledge, and build your career.
In the following demonstration, I am trying to apply bouncing animation to three elements, a div, p-tag and a-tag , its not working for the a-tag.
Any clues what might be wrong ?
link:
Set display:block
or display:inline-block
on the a
tag.
You can't use margins or scaling on inline elements.
Here's an updated example: http://codepen.io/anon/pen/odiuz
<a>
are inline elements so they won't obey any height or width set in CSS unless you change the display property toblock
orinline-block
– koala_dev Nov 16 '13 at 18:40