"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
* 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
> 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 -
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.
> #
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
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
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
> 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 -
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.
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;
10 matches
Mail list logo