> From: Dean Champeau > > Can someone explain the difference between the following two > selectors? > > ul#navmenu > #navmenu ul
ul#navmenu selects the UL element with id=navmenu. #navmenu selects the element with id=navmenu, regardless of its tagname. The only time #navmenu and ul#navmenu would be different is when you have an element with id=navmenu that is not a UL. In this case, #navmenu would select that element, but ul#navmenu would select nothing. #navmenu ul selects every UL element nested inside the element with id=navmenu. -Mike ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
