jquery - How can i position an a div with javascript in Safari? -


I need to move a div with javascript I tried offsetTop / left and I tried the style . But it does not work in style.top/ works in the left IE but not the safari

  document.getElementById ('links_safari'). OffsetTop = 20; Document.getElementById ('links_safari'). OffsetLeft = 150; Your question has been tagged with jQuery, so by using jQuery, I would suggest changing the margin. CSS Properties  
  $ ('# links_safari'). CSS ("margin-top", 20); $ ('# Links_safari') CSS ("margin-left", 150);    

Comments