[pmwiki-users] Applying styling to links
DaveG
pmwiki at solidgone.com
Mon Apr 26 22:23:37 CDT 2010
On 4/26/2010 8:35 PM, Petko Yotov wrote:
> On Sunday 25 April 2010 21:52:45, DaveG wrote :
>> However, if we have this markup, with two links, each having a different
>> class specification:
>> %apply=a abc%[[Test/Test | Test]]%% %apply=a def%[[Test/Test | Test]]%%
>>
>> The second class ('def') is applied to both links.
>>
>> Is there a way to ensure each link gets the correct class?
>
> You can place a line break between the two. If this is a huge problem,
That's tricky in the case I'm applying this to.
> I'd use
> the default<span> elements to wrap the links, and style them accordingly :
Not sure what you mean by "default<span>". Is there another way in
PmWiki to apply <span> tags to text?
> /* JQuery, do something to links inside spans with abc class */
> $("span.abc a").text('PmWiki').appendTo('#footer-lastmod');
Lol -- thanks, but that's a little overkill in this situation :)
~ ~ Dave
More information about the pmwiki-users
mailing list