I am trying to create a fairly simple web page to display an image and some text.
Here is the html code:
<link rel="stylesheet" type="text/css" href="CSS/style.css" />
<form id="form1" runat="server">
<asp:Literal ID="Literal2" runat="server"></asp:Literal>
<asp:Image ID="Image1" runat="server" ImageUrl="~/Images/B1AMUFLOW.JPG" Class="images"/>
<asp:Literal ID="Literal3" runat="server"></asp:Literal>
I was having a problem when large size image was inserted in the page (1536 x 2048) the image would run off the page. I fixed this by using css formating as follows:
font-family:@Arial Unicode MS;
I liked how this scalled the large image down to fit nicely on the page. But then I noticed it stretched out smaller images to fit 60% of the width and I did not like that.
Can anyone share with me a way to format images so that large images are fit into the page but smaller images are not scaled up?
I am using vb.net in visual studio 2008.