File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Make it so: Java DB Connections & Transactions this week in the JDBC 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 *
I agree. Here's the link:
subject: Question on the meaning of * * selector
It's not a secret anymore!