For the following problem, you need to go to the following address...
http://www.allsortshop.com/about/new...cle.php?read=5
When users post comments, and they post an image with the tag in the comments box at the bottom of my page, if their image is like 800px wide, this is the code i use to resize it...
This is the php code to post the comments...
Then in the main css stylesheet i have...
And in the seperate internet explorer css stylesheet i have...
If someone posts an image that is 800px wide, it automatically resizes it to fit. This works in all browsers except for internet explorer.
Internet explorer just makes each image that people have posted exactly 400px x 400px.
How can i get it to resize like it does in other browsers such a firefox?
http://www.allsortshop.com/about/new...cle.php?read=5
When users post comments, and they post an image with the tag in the comments box at the bottom of my page, if their image is like 800px wide, this is the code i use to resize it...
This is the php code to post the comments...
PHP Code:
$imgtag = array("[img]", "[/img]");
$replacetag = array("<img src='","' id='usr'>");
$newcomment = str_replace($imgtag, $replacetag, $row2[comments]);
//$postedcomment = wordwrap($newcomment,66, "<br>\n", 1);
$postedcomment = wordwrap($newcomment,66, " ", 1);
echo"$postedcomment</div></td></tr></table></div></div>";
Code:
img#usr { max-width: 400px; max-height: 400px; size: auto; }
Code:
img#usr { width:expression(400 + "px"); height:expression(400 + "px"); }
Internet explorer just makes each image that people have posted exactly 400px x 400px.
How can i get it to resize like it does in other browsers such a firefox?

Comment