PDA

View Full Version : Custom HTML Markup Class For usergroup


kronnos
04-03-2008, 05:34 PM
I tried to create a new class for usergroup html markup, everything seems to work except hovering effects. Any ideas?

This is what i added to CSS sheet:

.vip
{
color:green;
font-weight:bold;
font-family: Arial;
font-size: 120%;
text-decoration: underline;
}
.vip a:hover, .vip a:active, .vip_ahover
{
color: black;
text-decoration: underline;
}

This is what I added to the vip usergroup for HTML markup:

<span class="vip"> </span>

Opserty
04-03-2008, 08:13 PM
Try ".vip a" for the first selector. I'm not sure if .vip a:active is a valid selector, try removing it and seeing if it works.

MoT3rror
04-03-2008, 09:57 PM
.vip a, .vip a.hover, .vip a.link, .vip a.visited {
color: black;
text-decoration: underline;
}

You can remove the ones you don't need.

Opserty
04-04-2008, 08:44 AM
MoT3rror: I'm pretty sure is a colon (:) for pseudo selectors. Your ones are select links with certain classes.

I.e. <span class="vip"><a class="link">...</a></span>.

MoT3rror
04-04-2008, 07:11 PM
Maybe thats why the code on my new template wasn't always working.