Jump to content

Recommended Posts

Posted

hi there i am very stuck with this problem   i know pos.top has value in it, i dont uderstand pos.top - 30 i know its substracting but i dont understand it but i dont understand .css('top ', pos.top -30 + 'px') , 

where this is from jquery

var pas = $(this).position();

$('div.tooltip')

       .css('top', pos.top - 30 +'px')

       .css('left', pos.left + 'px');

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...