Change image size in ASP, C# and CSS -


why when place mouse on top of image doesn't change size?

i have on asp webpage:

<asp:image id="prodimage" cssclass="imgdetail" runat="server" /> 

the page_load() loads url of image this:

prodimage.imageurl = resolveurl("~/images/products/" + lblproductid.text + ".jpg"); 

the css imgdetail class looks this:

.imgdetail {     width: 180px;     height: auto;  }  .imgdetail:hover {     width: 360px;     height: auto;  } 

i want change image size when mouse on top of image.

thank you.

first debugging step i'd take confirm css style you're applying working. give .imgdetail 1px border red or something. if don't see on page load, means css file isn't being included, common mistake.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -