Search over 1.4 million articles by over 600 experts
  1. Home
  2. Computing & Technology
  3. Web Design / HTML

More from About.com

Browse Topics A-Z

CSS Selectors

CSS selectors define the part of the HTML document that should be styled. These documents explain the various CSS selectors and how they work.
Common Problems Using CSS Descendant Selectors
Descendant CSS selectors are getting much more popular in CSS style sheets because they give you a lot more control over precisely which elements you want to style. Add to that that child selectors and sibling selectors weren't widely supported until recently, and that adds to their popularity. But descendant selectors often select more than what you intend - with strange results.
Grouping CSS Selectors
Grouping CSS selectors allows you to style multiple elements with the same look and feel without needing to add additional attributes like IDs or classes to your HTML.
What is a CSS Attribute Selector?
A CSS attribute selector names the HTML tag or XHTML elements to style.
What is a CSS Child Selector?
A CSS child selector names the HTML tag or XHTML elements to style.
What is a CSS Universal Selector?
A CSS universal selector names the HTML tag or XHTML elements to style.
What is a CSS ID Selector?
A CSS id selector names the identified element to style.
What is a CSS Pseudo-Class Selector?
A CSS pseudo-class selector names the HTML tag or XHTML elements to style.
What is a CSS Type Selector?
A CSS type selector names the HTML tag or XHTML element to style.
What is a CSS Adjacent Sibling Selector?
A CSS adjacent sibling selector names the HTML tag or XHTML elements to style.
What is a CSS Pseudo-Element Selector?
A CSS pseudo-element selector names the HTML tag or XHTML elements to style.
What is a CSS Selector?
A CSS selector is the part of a CSS style call that identifies what part of the Web page should be styled.
What is a CSS Class Selector?
A CSS class selector names classed elements to style.
What is a CSS Descendant Selector?
A CSS descendant selector names the HTML tag or XHTML elements to style.
CSS Selectors
CSS selectors are the basics of cascading style sheets. Once you understand CSS 1 selectors you'll be able to select many of the more common elements and situations to create a well-styled document.
Cascading Style Sheets (CSS) Descendant Selectors
CSS descendant selectors make it possible to define styles on elements that appear in certain locations.
Adjacent Sibling CSS Selectors
CSS selectors of elements that are right next to one another. These elements are called adjacent elements or sibling elements.
  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. CSS
  5. CSS Selectors

©2008 About.com, a part of The New York Times Company.

All rights reserved.