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

Simon nzskiwi at gmail.com
Mon May 25 03:26:24 CDT 2015

What would be good is to have PmWiki put a span around the caption with a
class, e.g. <span class="caption">image caption text</span>.

The html I see pmWiki generate for an attach with a caption is 1
<div><img src='
alt='' title='' /><br /><span style='font-size:83%'>Link image example 1

I'd prefer to see PmWiki not to emit the <br/>, but to add the class
caption to pmwiki.css
.caption {display:; font-size:83%;}

I am a firm believer that PmWiki should label with a class more of the code
it emits for exactly the reason you outline.
So the div in the example should also have a class.

Perhaps a feature request is in order, oh no, check it out,
http://www.pmwiki.org/wiki/PITS/00489, and vote

On 25 May 2015 at 08:00, Hans Bracker <design at softflow.co.uk> wrote:

> Is there a way to apply styling to image caption text using css?
> I do not see any css hooks in the HTML, and am at a loss how to
> select the caption text via css.
> markup example:
> Attach:image.jpg"tooltip text"| image caption text
> HTML output:
> <div><img ..../></br> image caption text </div>
> Is there a way to assign a class to the div?
> thanks,
> Hans
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20150525/7955d12b/attachment.html>

More information about the pmwiki-users mailing list