[pmwiki-users] Marking up the markup

Kathryn Andersen kat_lists at katspace.homelinux.org
Wed Apr 25 16:37:33 CDT 2007


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
-- 
 _--_|\     | Kathryn Andersen	<http://www.katspace.com>
/      \    | 
\_.--.*/    | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
      v     | 
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |	-> Earth -> Sol -> Milky Way Galaxy -> Universe



More information about the pmwiki-users mailing list