Re: [css-d] * in css

2007-09-11 Thread christianz
"I am wondering if anyone knows what the asterisks in the following CSS do: #mainNav, #secondaryContent { padding-top: 20px; padding-bottom: 20px; } #mainNav *, #secondaryContent * { padding-left: 20px; padding-right: 20px; } #mainNav * *, #secondaryContent * * { padding-left: 0; padd

Re: [css-d] * in css

2007-09-11 Thread Alex Robinson
* is the unversal selector. That means it matches all elements. And that means all elements (including html, head, body etc) #foo * selects any element which is a descendant of #foo. >my guess is that the double asterisk is a typo or misunderstanding of >css selectors. No. It's a common tri

Re: [css-d] * in css

2007-09-11 Thread Nick Fitzsimons
> On 9/11/07, Julian Tulip's Licorice <[EMAIL PROTECTED]> wrote: > my guess is that the double asterisk is a typo or misunderstanding of > css selectors. On the contrary, they are a very clever technique devised by one of the world's leading CSS experts (who also happens to be admin of this list -

Re: [css-d] * in css

2007-09-11 Thread Gunlaug Sørtun
Julian Tulip's Licorice wrote: > I am wondering if anyone knows what the asterisks in the following > CSS do: The asterisk is a universal selector - targeting any element. > #mainNav, #secondaryContent { padding-top: 20px; padding-bottom: > 20px; } Targeting #mainNav and #secondaryContent. > #

Re: [css-d] * in css

2007-09-11 Thread James Leslie
I am wondering if anyone knows what the asterisks in the following CSS do: #mainNav, #secondaryContent { padding-top: 20px; padding-bottom: 20px; } #mainNav *, #secondaryContent * { padding-left: 20px; padding-right: 20px; } #mainNav * *, #secondaryContent * * { padding-left: 0; padding

Re: [css-d] * in css

2007-09-11 Thread Barney Carroll
john saylor wrote: > my guess is that the double asterisk is a typo or misunderstanding of > css selectors. It's a pretty neat trick actually. #secondaryContent * Means /everything/ that is inside secondaryContent would get 20px padding. #secondaryContent * * Means that those objects inside

Re: [css-d] * in css

2007-09-11 Thread Peter
john saylor wrote: > hi > > On 9/11/07, Julian Tulip's Licorice <[EMAIL PROTECTED]> wrote: > >> I am wondering if anyone knows what the asterisks in the following CSS do: >> > > yes. > > >> I would love some insight >> > > the answer was on the first page i found when i searched for

Re: [css-d] * in css

2007-09-11 Thread Nick Fitzsimons
> On 9/11/07, Julian Tulip's Licorice <[EMAIL PROTECTED]> wrote: > my guess is that the double asterisk is a typo or misunderstanding of > css selectors. On the contrary, they are a very clever technique devised by one of the world's leading CSS experts (who also happens to be admin of this list -

Re: [css-d] * in css

2007-09-11 Thread john saylor
hi On 9/11/07, Julian Tulip's Licorice <[EMAIL PROTECTED]> wrote: > I am wondering if anyone knows what the asterisks in the following CSS do: yes. > I would love some insight the answer was on the first page i found when i searched for "css asterisk". you can probably do this search yourself.

[css-d] * in css

2007-09-11 Thread Julian Tulip's Licorice
Hello, I am wondering if anyone knows what the asterisks in the following CSS do: #mainNav, #secondaryContent { padding-top: 20px; padding-bottom: 20px; } #mainNav *, #secondaryContent * { padding-left: 20px; padding-right: 20px; } #mainNav * *, #secondaryContent * * { padding-left: 0;