title: javascript div positioning
body: <p>I am using this script to display an image as popup on mouseover. The difficulty I am facing is that it is not positioning well in different monitor. It must be something to do with resolution.</p>
  
  <pre><code>function LargeImage(obj, e)
  {
    var imgbtn=document.getElementById('&lt;%=imgbtn1.ClientID%&gt;');  
    imgbtn.src=obj;//source of the image
    document.getElementById('imgbox').style.visibility="visible";
    document.getElementById('imgbox').style.position="absolute";
    document.getElementById('imgbox').style.left=e.clientX-150 + "px";
    document.getElementById('imgbox').style.top=225 +"px"; 
  } 
  
  &lt;div id="imgbox"&gt;&lt;asp:imagebutton id="imgbtn1" runat="server" OnClick="ImageButton4_Click"/&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Thank you.</p>