I'm having trouble setting attributes globally for a parent block and then turning them off for selected child blocks. I'm doing this with wordpress, so I don't have much choice over the HTML---but can't find the right CSS to do the trick.
In the following HTML, I'd like the first two <li> items to be red, then the last two to be blue. But my CSS isn't helping: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>test</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css" media="screen"> #block li { color:red; } .childblock ul li { color:blue; } </style> </head> <body> <div id="block"> <ul> <li>list1</li> <li>list2</li> </ul> <ul class="childblock"> <li>list1</li> <li>list2</li> </ul> </div> </body></html> I've tried a lot of variations... What am I missing? fg ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- 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/
