Posted: 06/02/05 03:22:45pm
Okay, I'm wondering if there is a way to do something here.
I have a class called menu. Whenever something is declared as class="#menu", I want all the td and table tags inside to have certain attributes. Is this possible?
Member of this emo board
Posts: 1827
Posted: 06/03/05 05:29:14am
yes
css:
#menu td, #menu table, #menu tr, #menu th {attributes go here like usual}
Underwear goes inside pants
Posts: 2767
Posted: 06/04/05 05:51:35pm
hmm maybe it's just a minor detail, but just wanted to mention you shouldn't make class names like "#menu" as #menu usually references an element with an ID="menu" not a class. classes are defined .menu{ }
Posted: 06/09/05 12:23:13pm
so If I have external CSS can I go:
.menu #td
{
Attributes Here
}
and then any table cell in the menu class will have said attributes?
Posted: 06/09/05 01:47:56pm
actually, it would be
td.menu {
attributes go here
}