Shoutbox

CSS Help - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: CSS Help (/showthread.php?tid=54867)

CSS Help by lordy on 01-12-2006 at 12:01 AM

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?
RE: CSS Help by Jhrono on 01-12-2006 at 12:21 AM

iirc it should be newsitem a or newsitem.a instead of a.newsitem :)


RE: CSS Help by lordy on 01-12-2006 at 12:25 AM

lol you gave me the idea to re-arrange some things. .newsitem a { works

thank you


RE: CSS Help by RaceProUK on 01-12-2006 at 11:37 AM

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.


RE: CSS Help by hmaster on 01-12-2006 at 05:26 PM

a.newsitem {} is making a class for <a> which would only be shown when you use:

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

:)


RE: CSS Help by wj on 01-12-2006 at 05:44 PM

td.newsitem a
{

}

That would work (I think)


RE: CSS Help by hmaster on 01-12-2006 at 06:16 PM

quote:
Originally posted by wj
td.newsitem a
{

}

That would work (I think)
yeh it would :)