* forget color wrote:
>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:

>#block li {
>  color:red;
>}
>
>.childblock ul li  {
>  color:blue;
>}

This would match

  <... class='... childblock ...'>
    <ul>
      <li>

while you want to match

  <ul class='childblock'>
    <li>

So use

  ul.childblock li { ... }
-- 
Björn Höhrmann · mailto:[EMAIL PROTECTED] · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
______________________________________________________________________
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/

Reply via email to