alternating colors.
> > tr .even{background:#eee}
> > tr.odd{background:#F9FBF9}

Ed Seehouse wrote
>
> Your sytnax is wrong for the shortcut rule.  It should be {background:
> #eee none;}
>

Not sure I agree with you here.

Solution as follows:

Css
.attributes-even{
background-color:#f9fbf9;
}
.attributes-odd{
background-color:#eee;
}



<?php
      $rows = 0;
      while (!$configuration->EOF) {
        $rows++;
?>
                                <tr class="<?php echo (floor($rows/2) == 
($rows/2) ? 'attributes-even' :
'attributes-odd'); ?>">
                                <td> all the real stuff</td>
<?php
    $configuration->MoveNext();
  }

?>

Thanks to all for your suggestions.

Ian
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.18/584 - Release Date: 12/12/2006
23:17

______________________________________________________________________
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