[pmwiki-users] How to format image captions using css

Hans Bracker design at softflow.co.uk
Mon May 25 07:40:40 CDT 2015


> The current "hook" is to redefine the '^img' core markup.

I rather not mess with that, looks very complex.

> Is there a need to modify it in the core? If so, what class names would
> be appropriate?

>    <div class="img">
>      <img />
>      <br/>
>      <span class="caption">...</span>
>    </div>

The above would be a very useful change, the class names are
acceptable to me. I hope this can become a core mod.

> If it is a core modification, skin authors will be able to align and/or
> style these standalone images more easily.

That's what I hope for.

A custom $ImgTagFmt is not quite enough, as far as I can see, as
any 'caption' text after a | in the Attach: markup is not passed on
(and I do not understand how PmWiki generates
</br><span>caption text...</span>
at present.


Best regards,
 Hans                         




More information about the pmwiki-users mailing list