2007/12/26, Gunlaug Sørtun <[EMAIL PROTECTED]>:

> David Sánchez (Železnic(ná Stanica) wrote:
>
> > <http://curefans.com/newsite/>
>
> > This works perfect in Firefox and IE, but in Opera it just shows a
> > dot instead the image. I just don't get it.
>
> Opera pre 9.50beta seems to misinterpret the 'height:100%' to mean zero.
>
> Changing it to...
>
> .headline img{
> border:1px dotted #666;
> width:100%;
> height:auto;
> }
>
> ...works as expected in all browsers. That's because 'height: 100%'
> should be interpreted to mean 'auto' anyway, since there's no height to
> calculate '100%' from. Opera 9.50betas get it right no matter what.

>Note that IE6 will "time out" on slow connections, lose the width/height
>ratio and distort the image - make it much too tall. Doesn't matter what
>values you use - percentage or 'auto', since IE6 and older don't
>preserve image-ratios.

This solved the problem. Now the image looks OK in all browsers
including Opera and Internet Explorer 6!

Thanks a lot,

David.
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to