CSS Question * html div...

G

Guest

Hello,

I´ve a question about CSS.
What does the following TAG-definition mean:

* html div#main{

}

In general... what means "* html" before the div#main definition?


Bye,
Martin
 
E

Els

Martin said:
Hello,
Hi,

I´ve a question about CSS.
What does the following TAG-definition mean:

* html div#main{

}

In general... what means "* html" before the div#main definition?

Just the * stands for 'any element', so for instance div#main *{...}
would apply to any element inside div#main.

IE doesn't understand that there are no elements higher up in the
document than <html>, so the writer of that line uses that to feed a
set of property values to IE only. Only works on IE5 and 6 -
IE7(beta2) doesn't apply the rule.
 
J

Jonathan N. Little

Martin said:
Hello,

I´ve a question about CSS.
What does the following TAG-definition mean:

* html div#main{

}

In general... what means "* html" before the div#main definition?

Since HTML is the root element with real web browsers it means nothing,
but IE will parse the definition, so it is used as an IE only CSS hack.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top