[pmwiki-users] vertical-align applied to inline image
Patrick R. Michaud
pmichaud at pobox.com
Wed Aug 9 11:11:27 CDT 2006
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