odd code question/problem

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
neterhet
New Member
New Member
Posts: 4
Joined: Mon Nov 03, 2008 1:40 am

odd code question/problem

Post 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?
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am

Re: odd code question/problem

Post by Ziggywigged »

Depends what your css looks like.

If you want to use
then your css should look something like:
.textlinks a {
styles
}
Take a penny, leave a penny.
neterhet
New Member
New Member
Posts: 4
Joined: Mon Nov 03, 2008 1:40 am

Re: odd code question/problem

Post 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;
}
Last edited by neterhet on Mon Nov 03, 2008 3:31 pm, edited 1 time in total.
Post Reply

Return to “Layout and Design (CSS & HTML)”