answersLogoWhite

0

CSS2 provides more powerful ways to associate styles with tags.

• "*" matches any tag. e.g. * {color:red}.

• A "greater than" sign ">" can be used to specify parent-child relationship. e.g. AAA > CCC > DDD {color:red} matches tag DDD whose parent is CCC whose parent is AAA.

• Space can be used to specify that a tag must have other tags as its ancestor. For example: AAA CCC DDD {color:blue} matches DDD that has CCC as its ancestor somewhere, which has AAA in its ancestor somewhere.

• "+" can be used to specify some restriction on same level tags. For example: AAA + BBB {color:red} matchs BBB only if it has a older sibling AAA.

• ":first-child" can be used to match a tag only if it is the first child. e.g. BBB:first-child {color:red} matches only if BBB is a first child.

• The following can be used for the anchor tag and certain other tags:

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

When was released CSS3?

CSS3 (and HTML5) are in the final stages of ratification and so are not yet official releases. Care must be taken with their features as they will not be fully implemented for years. I find that the LCD (Lowest Common Denominator) practice works best!


What is the formula for cesium sulphide?

The formula for cesium sulphide is Cs2S.


Can you upgrade Photoshop 6.0 to Photoshop css2?

I would strongly recommend you upgrade to the newest version out which is Photoshop CS5 if you can.And it's Adobe Photoshop CS2. You wont find any answers typing CSS2.


Which browsers support CSS?

All major browsers support CSS2; however, IE is kind of weird in its box model implementation.


What is difference between as on and as at?

difference between as on and as at


What are the differences between California and Florida?

What is the difference between Florida and California What is the difference between Florida and California


What is the difference between physician and doctor?

what's the difference between physician and doctorwhat's the difference between physician and doctor what's the difference between physician and doctor


What difference between paging?

Difference between paging and what?


What is the difference between difference and difference?

The answer of difference


What is the difference between an enterprise and association what is the difference between an pvt ltd and ltd.?

difference between enterprise and corporation


What is the difference between a samurai and shogun?

The difference between a shogun and a samurai is like the difference between a king and a knight.


What is the difference between an enterprise and association what is the difference between an pvt ltd and ltd?

difference between enterprise and corporation