Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript positioning an element with jquery Re: positioning an element with jquery

#79093
Anonymous
Inactive

Well, 2 points I guess:
1. is there any unit? px? em?
Example:
$(element).css(‘left’, ‘272.5px’);

2. need some css before positioning:

$(element).css(‘position’, ‘fixed’); // or ‘absolute’.