Jump to content

img width dont work in opera


web_master

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/98363-img-width-dont-work-in-opera/
Share on other sites

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

 

width=800http://www.csantaver.eu/temp/opera.jpg[/img]

 

 

and the same in Firefox, IE

 

width=800http://www.csantaver.eu/temp/firefox.jpg[/img]

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 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.