[pmwiki-users] vertical-align applied to inline image

Henrik Bechmann henrik at bechmannsoftware.com
Wed Aug 9 11:51:52 CDT 2006


Thanks Patrick.

I put

$WikiStyleCSS[] = 'vertical-align';

in farmconfig.php

and wrote the wiki code

Hello %img vertical-align:middle% Common-Graphics:box.gif Police and 
Park Safety

("hello" so that the image wouldn't be at the beginning of the line, to 
take out that factor)

which produced the following HTML:

<p>Hello <span class="img" style="vertical-align: middle;"> <img 
src="/common/graphics/box.gif" alt="" title=""> Police and Park 
Safety</span>
</p>

When what I want is:

<p>Hello <img style="vertical-align: middle;" 
src="/common/graphics/box.gif" alt="" title=""> Police and Park Safety
</p>

I seem to be missing something. Can you see something?

Thanks,

- Henrik


Henrik Bechmann
www.osscommons.ca
www.bechmannsoftware.com
Webmaster, www.dufferinpark.ca



Patrick R. Michaud wrote:
> On Wed, Aug 09, 2006 at 09:58:58AM -0400, Ryan R. Varick wrote:
>   
>> On 8/8/06, Henrik Bechmann <henrik at bechmannsoftware.com> wrote:
>>     
>>> In wiki markup, How do I apply vertical-align:middle to an inline image,
>>> such that the result is
>>>
>>> <img style="vertical-align:middle"...
>>>
>>> %vertical-align:middle%somelocation:someimage.jpg just puts a span
>>> around it, and doesn't effect the image.
>>>       
>
> 1.  Enable the vertical-align CSS style with
>
>         $WikiStyleCSS[] = 'vertical-align';
>
> 2.  Use the following wikistyle in markup:
>
>         %img vertical-align:middle% Attach:something.gif
>
>   
>> Along those same lines, I notice that PmWiki tends to wrap images in
>> their own <div> tags.  This hasn't always been the case, as I recall.
>> Is there are reason for this?
>>     
>
> PmWiki only wraps images in <div> tags if the image is the first
> thing at the start of a line.  It's been this way since at least
> 2.0.0 (I think it was introduced in 2.0.beta52).
>
> Pm
>
>
>   




More information about the pmwiki-users mailing list