Tuesday, 27 August 2013

align text middle with position: absolute

align text middle with position: absolute

I'm using jRumble a jquery plugin to make my text shake.
I want it to activate on-hover, but only if you hover of the text (not the
div!) so, I use position: absolute;
Because I use position:absolute; my text aligns at left, instead of middle!
without absolute: http://jsfiddle.net/UxS6y/
with absolute: http://jsfiddle.net/UxS6y/1/

No comments:

Post a Comment