[pmwiki-users] Marking up the markup
DaveG
pmwiki at solidgone.com
Wed Apr 25 16:46:16 CDT 2007
I have another piece of code that I'm making use of which works based on
classes, picking up objects from the DOM based on class.
I'd have thought that adding a class to an anchor is not something out
of the usual.
~ ~ Dave
Kathryn Andersen wrote:
> On Wed, Apr 25, 2007 at 05:22:09PM -0400, DaveG wrote:
>> Anyone help? I need to get a class tag inside an anchor link:
>> <a href="xyz" class="my_class">text</a>
>
> Why? What is the problem with having a class tag in a span around an
> anchor link?
>
> <span class="my_class"><a href="xyz">text</a></span>
>
> If you need to style the anchor with CSS, then the only difference is
> that you would do something like this:
>
> span.my_class a { ... }
>
> rather than
>
> a.my_class { ... }
>
> It should still work perfectly well.
>
> Kathryn Andersen
More information about the pmwiki-users
mailing list