[pmwiki-users] Wierd problem with cframe style

Roman romat2 at gmail.com
Tue Jun 27 15:57:15 CDT 2006


I found it. It's a problem of Flash cookbook recipe and HansB wrote a
comment about it on http://www.pmwiki.org/wiki/Cookbook/Flash.
Problematic are these lines:

 SDVA($WikiStyleAttr,array(
   'height' => 'img|object|embed',
   'width'  => 'img|object|embed'));

There is also alternative script but it does not use so straightforward syntax.

Roman

On 6/27/06, Roman <romat2 at gmail.com> wrote:
> 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