Jumpin Bajeezopotamus! Does every single little tiny thing (like dividing by 2) require a forum post?!?
If it weren't for the fact that I can't afford to hire someone to do this for me, I swear I would.
-
var w = $( this ).css( 'width' ),
-
s = Math.ceil( w / 2 ) /*** I have also tried "( w / 2 )" and "w / 2" all three result in "NaN" ***/
-
console.log( w ) /*** prints an int. perfect. :) ***/
-
console.log( s ) /*** prints NaN... WTF??? ***/
Eventually I want to do this:
- return 'margin-right:-' + s + 'px;'