What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » CSS Help

CSS Help
Author: Message:
lordy
Senior Member
****


Posts: 853
Reputation: 24
35 / Male / Flag
Joined: Jul 2004
Status: Away
O.P. CSS Help
if i have in a table:
code:
<td class="newsitem">

and in the CSS:
code:
a.newsitem {
text-decoration: none;
color: #000000;
}
shouldnt the links in that table cell be black :(
i also have in the CSS
code:
a {
    color: #FFFFFF;
    text-decoration: none;
}
because the rest of the link in the page SHOULD be white, just not the ones in that particular table cell. is there a way to do that?
01-12-2006 12:01 AM
Profile E-Mail PM Find Quote Report
Jhrono
Veteran Member
*****


Posts: 1791
Reputation: 25
33 / Male / Flag
Joined: Jun 2004
RE: CSS Help
iirc it should be newsitem a or newsitem.a instead of a.newsitem :)
01-12-2006 12:21 AM
Profile E-Mail PM Find Quote Report
lordy
Senior Member
****


Posts: 853
Reputation: 24
35 / Male / Flag
Joined: Jul 2004
Status: Away
O.P. RE: CSS Help
lol you gave me the idea to re-arrange some things. .newsitem a { works

thank you
01-12-2006 12:25 AM
Profile E-Mail PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: CSS Help
The way CSS works is that a list of ement/class names means different things depending on the separator.
.newsitem, a {} applies the formatting to all top-level .newsitem and <a>.
.newsitem a {} applies to <a> inside a .newsitem.
[Image: spartaafk.png]
01-12-2006 11:37 AM
Profile PM Web Find Quote Report
hmaster
Senior Member
****

Avatar

Posts: 716
Reputation: 24
33 / Male / Flag
Joined: Nov 2004
RE: CSS Help
a.newsitem {} is making a class for <a> which would only be shown when you use:

<a class="newsitem"></a>

:)
[Image: sig.png]
01-12-2006 05:26 PM
Profile PM Web Find Quote Report
wj
Former Admin
*****

Avatar
I aim to misbehave.

Posts: 2224
Reputation: 52
39 / – / Flag
Joined: Mar 2002
RE: CSS Help
td.newsitem a
{

}

That would work (I think)
"A towel is about the most massively useful
thing an interstellar hitchhiker can have."
01-12-2006 05:44 PM
Profile PM Find Quote Report
hmaster
Senior Member
****

Avatar

Posts: 716
Reputation: 24
33 / Male / Flag
Joined: Nov 2004
RE: CSS Help
quote:
Originally posted by wj
td.newsitem a
{

}

That would work (I think)
yeh it would :)
[Image: sig.png]
01-12-2006 06:16 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On