[opencms-dev] IE ignores "width" parameter

Schliemann, Kai K.Schliemann at comundus.com
Tue Jan 13 12:23:00 CET 2015


Hi Arno,
it is width=“300“ (without px) or style=“width:300px“.
HTH
Best regards
Kai

Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Arno Nym
Gesendet: Dienstag, 13. Januar 2015 12:09
An: opencms-dev at opencms.org
Betreff: [opencms-dev] IE ignores "width" parameter

Hi,
i use OpenCMS 8.5.1 and i have this code in a jsp-file:

snippet:
...
            <figure>
                <img src="<cms:link>${MyImage.value.File}</cms:link>" alt="${MyImage.value.Description}" width="300px" class="image-right"/>
                <fig-caption>
                    <em><span ${MyImage.rdfa.Description}>${MyImage.value.Description}</span></em>
                    <a href="<cms:link>${MyImage.value.File}</cms:link>" target="_blank" class="raquo"><fmt:message key="detail.myimages.download"/></a>
                </fig-caption>
            </figure>
...

With Firefox 34.0 the image is correctly scaled in 300x668px, but with internet explorer 11.0.9 the image is as big as the text-column (700x1559px) and the browser ignores the width.
the image-right class is defined in a css-file:

<<
.image-right{float:right;margin:0 20px 5px 0}.
>>

Anyone an idea?
Arno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20150113/cb4668d7/attachment.htm>


More information about the opencms-dev mailing list