Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- Alternate table row colours


StoutFiles - 12:18 pm on May 23, 2012 (gmt 0)


Are the tables static? If they are generated dynamically you can just have a counter as you populate rows, switching back and forth on odd and even numbers.

while(table_populates)
{

if($odd)
$color = "white";
else
$color= "gray";

echo '<tr style="background-color:'.$color.';">';

}


Thread source:: http://www.webmasterworld.com/css/4456880.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com