[pmwiki-users] Wierd problem with cframe style

Roman romat2 at gmail.com
Tue Jun 27 10:45:12 CDT 2006


I've noticed that images which use %cframe% style are not displayed
correctly on my site. Their frame is stretched to full width and image
is resized. So I put the same markup to freshly installed pmwiki (of
course same version as used in my site) and in this case images are
displayed correctly. The difference is in HTML output. While default
pmwiki generates

<div class='frame' style='margin-left: auto; margin-right: auto;
width: 200px; text-align: center;'> <img
src='http://server/images/image.gif' alt='' title='' /></div>

my site generates

<div class='frame' style='margin-left: auto; margin-right: auto;
text-align: center;'> <img width='200px'
src='http://server/images/image.gif' alt='' title='' /></div>

i.e. width is not a part of a style but an attribute of <img> tag.

I've verified several times that I don't redefine
$WikiStyle['cframe']. What other setting could cause this different
behaviour?

Thanks, Roman, pmwiki 2.1.10




More information about the pmwiki-users mailing list