|
uCoz Community Archives Locked Auto Image Resize |
Auto Image Resize |
I've tried variations of HTML, CSS, and even threw in phpBB for the hell of it, but I cannot get a working code that will automatically resize images down that people post to stay within a certain criteria to keep from stretching my forums. Now let it be said that I'm by no means a master programmer as I am more the guy that just figures it out as I go, or asks for help like now. Anyhow, I've Googled around to try and figure out how other forums get this to work, but no luck so far. Any help would be appreciated. Thanks.
|
This would probably be the easiest css method of doing it. Using a max-width/height for normal browsers, and an expression for ie specific. Change the px values [700] to something more suitable for your design.
Code .posttdMessage img { max-width:700px; max-height:700px; width:expression((this.width>700) ? "700px" : true); height:expression((this.height>700) ? "700px" : true);} |
| |||
| |||