Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

nested css?

Status
Not open for further replies.

joelmac

Programmer
Jun 4, 2002
92
CA
Hi there,

Is it possible to somehow nest style elements inside one another? For example: Could I have all anchors inside a table cell styled one way and all anchors out side the table styled another, without explicitly setting classes on each of the anchors?

Thanks.

________________________
JoelMac
 
Yup. Like this:

Code:
a {
    color: blue;
}

td a {
    color: red;
}

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top