Page 1 of 1

odd code question/problem

Posted: Mon Nov 03, 2008 1:51 am
by neterhet
i am trying to change the style of the text in the news module... i went into the template page and changed the class name so it would use the class from another css stylesheet...

when the module builds the page, it generates this code...


IT'S THE 10TH ANNIVERSARY OF SQUIRREL DAY USA!


now, the class "textlinks" will not apply to the link for some reason... if i could get it to write the code like this... it would work.


IT'S THE 10TH ANNIVERSARY OF SQUIRREL DAY USA!


why won't the class in the div apply to the link in the former code... shouldn't it?

Re: odd code question/problem

Posted: Mon Nov 03, 2008 2:41 am
by Ziggywigged
Depends what your css looks like.

If you want to use
then your css should look something like:
.textlinks a {
styles
}

Re: odd code question/problem

Posted: Mon Nov 03, 2008 3:29 am
by neterhet
i'm using this...

a.textlinks {
font-family: Arial, Helvetica, sans-serif;
font-size: small;
color: #000000;
}
a.textlinks:visited {
color: #666666;
}
a.textlinks:hover {
color: #666666;
}
a.textlinks:active {
color: #000000;
}


like this?

.textlinks a {
font-family: Arial, Helvetica, sans-serif;
font-size: small;
color: #000000;
}
.textlinks a:visited {
color: #666666;
}
.textlinks a:hover {
color: #666666;
}
.textlinks a:active {
color: #000000;
}