I have some CSS (Below) defining an images size
#latestImages img
{
height: 95px;
width: auto;
}
This is affecting these images:
<img src="@images.ImagePath" alt="@images.NameOfImage" />
When i set an onmouseover event to this image like so:
<img src="@images.ImagePath" alt="@images.NameOfImage" onmouseover="this.width=100;this.height=100;" onmouseout="this.width=200;this.height=200;"/>
The images height and width do change in the html when the source is viewed but there is no visible change, but when i removed the css the changes did occur. Does anyone know why this is? And is there anything I can do different to keep the css as is and have javascript enlarging the image? Thanks in advance!