web_master Posted March 28, 2008 Share Posted March 28, 2008 Hi, what can I do if img "width" and/or "height" dont work in Opera browser. example: <img src="image/picture.jpg" width="100" /> Ill try css (height, max-heigh) — nothing (for now I dont have a solution to make a thumb picture...) Please help! thnxs Quote Link to comment https://forums.phpfreaks.com/topic/98363-img-width-dont-work-in-opera/ Share on other sites More sharing options...
GameYin Posted March 28, 2008 Share Posted March 28, 2008 Well without looking at your code, I can only guess. How about this img { width: 100px; //change to whatever height: 50px; //change to whatever } Quote Link to comment https://forums.phpfreaks.com/topic/98363-img-width-dont-work-in-opera/#findComment-503411 Share on other sites More sharing options...
web_master Posted March 28, 2008 Author Share Posted March 28, 2008 th only code is: <img src=\"".$cs_tagok_foto."\" alt=\"\" height=\"100\" /> in IE, FF I get picture height of 100px and proportionally width, only in Opera the picture have a good dimension Here is in Opera http://www.csantaver.eu/temp/opera.jpg[/img] and the same in Firefox, IE http://www.csantaver.eu/temp/firefox.jpg[/img] Quote Link to comment https://forums.phpfreaks.com/topic/98363-img-width-dont-work-in-opera/#findComment-503434 Share on other sites More sharing options...
mb81 Posted March 28, 2008 Share Posted March 28, 2008 It's not the picture that is causing the problem, it's the width of whatever is holding the picture. Something is not set right on the DIV or TABLE or whatever you are using to hold the picture. Quote Link to comment https://forums.phpfreaks.com/topic/98363-img-width-dont-work-in-opera/#findComment-503444 Share on other sites More sharing options...
web_master Posted March 28, 2008 Author Share Posted March 28, 2008 The picture is (in PHP): <img src=\"".$cs_tagok_foto."\" alt=\"\" height=\"100\" /> The table (TD) where is picture is: <td colspan="2" class="USER_TABLE_PHOTO_TD"><?php print $cs_tagok_foto_html;?></td> the CSS of td is: .USER_TABLE_PHOTO_TD { height: 128px; background-image: url(../images/user_slices/user_photo.jpg); background-repeat: no-repeat; text-align: center; vertical-align: middle; }[/cCODE] SO, I cant understand where is a problem Quote Link to comment https://forums.phpfreaks.com/topic/98363-img-width-dont-work-in-opera/#findComment-503461 Share on other sites More sharing options...
web_master Posted March 28, 2008 Author Share Posted March 28, 2008 Ill take out the table and the styles You can see it on link, and see the source... I cant find why its dont work in Opera http://www.csantaver.eu/orokos_tagsag/temp.php Quote Link to comment https://forums.phpfreaks.com/topic/98363-img-width-dont-work-in-opera/#findComment-503493 Share on other sites More sharing options...
web_master Posted April 4, 2008 Author Share Posted April 4, 2008 Is possible that is a bug in Opera? Quote Link to comment https://forums.phpfreaks.com/topic/98363-img-width-dont-work-in-opera/#findComment-509038 Share on other sites More sharing options...
GameYin Posted April 4, 2008 Share Posted April 4, 2008 th only code is: <img src=\"".$cs_tagok_foto."\" alt=\"\" height=\"100\" /> Why are you using \""? Try this <img src=\".$cs_tagok_foto\" alt=\"\" height=\"100\" /> Quote Link to comment https://forums.phpfreaks.com/topic/98363-img-width-dont-work-in-opera/#findComment-509128 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.