aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Question on the meaning of * * selector Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Question on the meaning of * * selector" Watch "Question on the meaning of * * selector" New topic

Question on the meaning of * * selector

William Rouse
Ranch Hand

Joined: Apr 12, 2006
Posts: 73
I found this listing in a CSS file.
mainNav,#secondaryContent {
padding-top: 20px;
padding-bottom: 20px;

#mainNav *,#secondaryContent * {
padding-left: 20px;
padding-right: 20px;

#mainNav * *,#secondaryContent * * {
padding-left: 0;
padding-right: 0;

I take the second selector to mean everything that is in maninNav and secondaryContent should have the following rules.

What does the third selector with the double * mean?
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
means any tag any tag

div * *

div ul li

Not sure about support of *
Consider Paul's rocket mass heater.
subject: Question on the meaning of * * selector
jQuery in Action, 3rd edition