Tue, 2005-05-24 12:07
Hi, can someone tell me what an asterix followed by 'html' does exactly. I couldn't find anything in Google. :roll:
Thanks!
Tue, 2005-05-24 12:16
#1
* html - What is it?
The * is a universal selector, ie it selects everything. This is useful for zeroing margins and padding on all elements.
The * html is a hack to target Internet Explorer.
IE is the only browser that sees HTML as a descendant of the *. Seeing as the outermost tag in a html document is <html>, you can't go higher than that. Example:
<p> </p>
p b {this style targets the b descendant of p}
Hopefully this makes sense.
Tue, 2005-05-24 12:22
#2
* html - What is it?
Sure does - thanks!
Tue, 2005-05-24 15:43
#3
* html - What is it?
Good.
To override styles use something like this:
* html #container p
{
}
This will only affect IE.