Randomly positioning an element via css with jquery -


is there reason

$("#cloud").top(100).left(100); 

doesn't work despite fact

$("#cloud").height(math.random()*55).width(math.random()*55); 

and

#cloud {     top:100px;     left:100px; } 

work fine?

top , left css properties, , should therefore assigned .css() function.

$("#cloud").css({     "top" : "100px",     "left" : "100px" }); 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -