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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can someone explain this css syntax?

Status
Not open for further replies.

joelwenzel

Programmer
Jun 28, 2002
448
div.menuBar,div.menuBar a.menuButton {
stuff to set the style
}

I do not understand what the div.menuBar a.menuButton means. Does it mean that the a menuButton class can only be called within a div.menuBar block? I understand how the comma separates classes so that they can have the same style properties without having to declare two separate statements.
 
I'm assuming that it means if the a.menuButton is inside the div.menuBar or div.menuBar then use the style, if not, use the default.

I'm assuming this because of this:
.adiv a{
text-dercoration:none;
}
That gives me links with no underlines when they are inside of class="adiv". When outside the adiv, it gives me normal A's

Rick It's a pleasure to know that I've helped you. If I have,
please click the link below to let me know. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top