Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Very basic question

Status
Not open for further replies.

minli98

IS-IT--Management
Aug 30, 2005
178
US
Hi there,

In CSS, what does '>' (e.g. html>body) mean? I have seen it around, but doesn't know what it's for. Thanks.

Min
 
It is called a "child selector". Try this link to start:
There are links for additional info at the bottom.

FYI: I googled the string "html>body" and that was the first result of 249000.

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
It means child, or descendant of the first order. Say you have a container div. Inside that div you have many paragraph but you also have another div and inside that div even more paragraphs. All paragraphs are descendats of the first div but only the first ones are its children. The second group of paragraphs are the children of the second div. So it helps further distinguish elements in the flow without assigning classes or ids to them. However from your example body is always the child of html, so the use of this style might be arbitrary. But this selector is completely unsupported in all UE versions, so sometimes people use it to describe specific non-IE attributes to certain elements. If you need more help on selectors, I always find this page very helpful:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top