title: Show image in browser in full screen in C# ASP.NET
body: <p>i want to show an image in the browser page and to stretch it so it would fill the whole browser page.</p>
  
  <p>i tried:</p>
  
  <pre><code>&lt;asp:Image ID="myimage" runat="server" ImageUrl="/Images/mypic.jpg" Width="100%" Height="100%"&gt;&lt;/asp:Image&gt;
  </code></pre>
  
  <p>and also tried using css:</p>
  
  <pre><code>&lt;asp:Image ID="myimage" runat="server" ImageUrl="/Images/mypic.jpg"  CssClass="myimage1"&gt;&lt;/asp:Image&gt;
  </code></pre>
  
  <p>and in the CSS:</p>
  
  <p>.myimage1{height:100%;width:100%;}</p>
  
  <p>in both cases the browser (IE9), stretches the image with a height that is much bigger then the broswer hight and a right scroll bar is shown.</p>
  
  <p>How can i stretch an image to the exact size of the current page size? </p>