css - How do I resize an image in IE 8 -


i have image 90px x 90px (it's jpg file) , can't figure out how make 60px 60px in internet explorer. looked @ few sites told me use css style:

.img { -ms-interpolation-mode: bicubic; } 

but nothing happened. css i'm using works in fireforx , chrome:

.img {     horiz-align: center;     width: 60px;     height: 60px;     margin: 10px;     border: 1px rgb(218, 218, 218) solid;     background: #c4c4c4 no-repeat 0 0; } 

the issue original code you're specifying img class i.e .img rather img

here's 2 ways this. 1st no css:

<img src="your-image.jpg" alt="" width="60" height="60" /> 

2nd css:

<img src="your-image.jpg" alt="" class="image-resize" /> 

...

img.image-resize {    width: 60px;   height: 60px; } 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -