[Typo3] chc forum ie bug with too large images
Horn Gabor
gabor at h3online.hu
Tue Aug 16 12:45:06 CEST 2005
Hi,
i found a solution, so i post it maybe it's useful for others too:
.tx-chcforum-pi1-singlePost .text img {
max-height: 500px;
max-width: 500px;
width: expression(Math.min(this.width, 500) + "px");
}
does the job and correctly limits the width the image occupy in ie too
for 500px.
bye, hirisov
Horn Gábor írta:
> Hi,
>
> i'm sure you already noticed that because of IE doesn't handle max-width
> and max-height css properties correctly, a too large user submitted
> image (with [img]..[/img] ) breaks the fixed page layout. I found a js
> workaround for ie here:
>
> http://doxdesk.com/software/js/minmax.html
>
> but althought it limits the size of images to the defined width, it also
> resizes them to 350x350 (or whatever is your .img {max-width}. Imagine
> the smily pictures ..;) So althought it's funny not quite usable.
>
> My question is could anybody solve this problem with ie?
>
> thx, hirisov
More information about the TYPO3-english
mailing list