[thelist] JS: Resizing an image? [Solved] + tip

VOLKAN ÖZÇELİK volkan.ozcelik at gmail.com
Mon Aug 29 01:27:33 CDT 2005


> I did it on purpose because myImageID.style.height="100"; did not work in
> my case, but directly changing the image size did. I went for the simple
> and reliable solution that the newbie or confused doing a search can find a
> solution.

myImageID.style.height="100px"; //not just 100

shall work for sure. And -imho- since it is inline CSS it shall
override the global css attribute.

I have not tested it.

Have you made a typo there?

Cheers,
Volkan.


More information about the thelist mailing list