<div dir="ltr">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>.<div><br></div><div>The html I see pmWiki generate for an attach with a caption isĀ <a href="http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/CodeMirror">1</a></div><div><span class="" style="font-family:monospace;font-size:medium;white-space:pre-wrap"><span class=""><div></span><span class=""><img <span class="">src</span>='<a class="" target="_blank" href="http://kiwiwiki.co.nz/pmwiki/uploads/Test/CodeMirror/LinkImageExample.png">http://kiwiwiki.co.nz/pmwiki/uploads/Test/CodeMirror/LinkImageExample.png</a>' <span class="">alt</span>='' <span class="">title</span>='' /></span><span class=""><br /></span><span class=""><span <span class="">style</span>='<span class="">font-size:83%</span>'></span><span style="color:rgb(0,0,0)">Link image example 1</span><span class=""></span></span><span class=""></div></span></span></div><div><span class="" style="font-family:monospace;font-size:medium;white-space:pre-wrap"><span class=""><br></span></span></div>I'd prefer to see PmWiki not to emit the <br/>, but to add the class caption to pmwiki.css<div><span class="" style="font-family:monospace;font-size:medium;white-space:pre-wrap"><span class="">.caption {display:; </span></span><span style="font-family:monospace;font-size:medium;white-space:pre-wrap">font-size:83%;}</span></div><div><br></div><div>I am a firm believer that PmWiki should label with a class more of the code it emits for exactly the reason you outline.</div><div>So the div in the example should also have a class.</div><div><br></div><br>Perhaps a feature request is in order, oh no, check it out, <a href="http://www.pmwiki.org/wiki/PITS/00489">http://www.pmwiki.org/wiki/PITS/00489</a>, and vote</div><div class="gmail_extra"><br><div class="gmail_quote">On 25 May 2015 at 08:00, Hans Bracker <span dir="ltr"><<a href="mailto:design@softflow.co.uk" target="_blank">design@softflow.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Is there a way to apply styling to image caption text using css?<br>
I do not see any css hooks in the HTML, and am at a loss how to<br>
select the caption text via css.<br>
<br>
markup example:<br>
Attach:image.jpg"tooltip text"| image caption text<br>
<br>
HTML output:<br>
<div><img ..../></br> image caption text </div><br>
<br>
Is there a way to assign a class to the div?<br>
<br>
thanks,<br>
Hans<br>
<br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">____<br><a href="http://kiwiwiki.co.nz" target="_blank">http://kiwiwiki.co.nz</a></div>
</div>