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

Why Use CSS Descendants?

By Jennifer Kyrnin, About.com

When styling a new document, it's always a good idea to style it using descendant {link} properties, especially for common items like <h1> and <p>. This way, even if there is only one type of <h1> in the document you can be sure that it won't be affected if the styles change in the future and another type of <h1> is added.

For example:
div#main h1 { border-bottom: solid 5px #ccc; }

More Web Design / HTML Quick Tips
  1. Home
  2. Computing & Technology
  3. Web Design / HTML

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

All rights reserved.