| 
	
 | 
 Posted by Jonathan N. Little on 09/28/05 18:11 
booner wrote: 
 
> I have a table that I alternate each rows color: 
>  
> <table> 
>     <tr bgcolor="White"> 
>         <td>row 1</td> 
>     </tr> 
>     <tr bgcolor="#F2F2F2"> 
>         <td>row 2</td> 
>     </tr> 
>     <tr bgcolor="White"> 
>         <td>row 3</td> 
>     </tr> 
>     <tr bgcolor="#F2F2F2"> 
>         <td>row 4</td> 
>     </tr> 
> </table> 
>  
> I have a few users who say they do not see the alternating coloring.  I went 
> in and changed the #F2F2F2 to Blue and they do see that. 
>  
> We are using Internet Explorer. 
>  
> Any pointers to what the issue may be. 
 
 
First 'white' is #FFFFFF, so #F2F2F2; is only 8/256 or 3% black a very  
light gray it maybe more to do with the color depth of their display  
then a browser issue. 
 
Second, use CSS, because to change your table you have to change every  
row code whereas with CSS all you have to change is one CSS entry: 
 
..evenrow { color: black; background-color: white; } 
..oddrow { color: black; background-color: aqua; } 
 
<table> 
     <tr class="evenrow"> 
         <td>row 1</td> 
     </tr> 
     <tr class="oddrow"> 
         <td>row 2</td> 
     </tr> 
     <tr class="evenrow"> 
         <td>row 3</td> 
     </tr> 
     <tr class="oddrow"> 
         <td>row 4</td> 
     </tr> 
</table> 
 
 
 
--  
Take care, 
  
Jonathan 
------------------- 
LITTLE WORKS STUDIO 
http://www.LittleWorksStudio.com
 
  
Navigation:
[Reply to this message] 
 |