| You are here: | About>Computing & Technology>Web Design / HTML |
![]() | Web Design / HTML |
All CSS Quick TipsFirst Child Pseudo SelectorAn Expansion of the CSS Child SelectorOnce you have defined a child selector you can refine that selection even further using the CSS pseudo-selector first child. This allows you to add cascading style sheet styles to an even more specific element within a page. Defining the first child: This means that the first paragraph in a div element would have the background color of blue, but the rest would keep the default background color. Browser SupportThe first-child pseudo-selector is not supported in IE 6 and lower for Windows or Netscape 4 for Windows. It did work in Safari and Internet Explorer 5.2 for Macintosh. All CSS Quick Tips |
Las Vegas on a BudgetFind a BargainHotel DealsCheap EatsFree AttractionsEntertainment for Less |
All Topics | Email Article | | | ![]() |
| Advertising Info | News & Events | Work at About | SiteMap | Reprints | Help | Our Story | Be a Guide |
| User Agreement | Ethics Policy | Patent Info. | Privacy Policy | ©2008 About, Inc., A part of The New York Times Company. All rights reserved. |


