| SlimDaddy | Date: Monday, 2009-10-19, 1:44 Pm | Message # 1 |
|
Newbie
Group: Users
Messages: 7
Awards: 0
Reputation: 0
Status: Offline
| 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.
|
|
| |
| kostova | Date: Monday, 2009-10-19, 2:05 Pm | Message # 2 |
Regular
Group: Checked
Messages: 58
Awards: 2
Reputation: 4
Status: Offline
| 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);}
|
|
| |
| Dartz | Date: Monday, 2009-10-19, 2:09 Pm | Message # 3 |
Cookie Monster
Group: Head Mod
Messages: 5961
Awards: 61
Status: Offline
| SlimDaddy, use search, we had this answer on forum. kostova, use search instead of bumping.
*Yawn... drools on Renatus while sleeping...*
|
|
| |