Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 15376
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
Similar Threads
Need help editing some css if possible (SOLVED)
Regarding Scrollable Table
Padding in firefox
Safari and IE issues.
List item disappears in Firefox