A demonstration of combination

CSS selector combinators are used when you need to refer to elements via their relationship to other elements. Possible relationships are descendants, children and siblings.

I have created a demonstration page where you can see the combinator syntax as well as what they do. There are a couple more relevant pseudo-classes that I didn’t include.

If you need to support older versions of Internet Explorer you have to be careful. IE 6.0 or older does not support CSS 2.1 selectors while IE 8.0 or older does not support CSS3 selectors.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s