Changing odd row colors in tables
Jun 2, 2010 20:59:09 GMT -5
Post by Psycho on Jun 2, 2010 20:59:09 GMT -5
I use the following CSS code to color a table to display a number of different data pieces.
The last line (I think Carl guided me to a few years ago) is to have the odd rows formatted differently than the even rows. This worked great in IE6 and allowed the data to be easily discernable as seen in the first picture. Now that most of the PC's in our facility have updated to IE8, that command no longer works and leaves a very busy looking table that's hard to pull info from. Does anyone know of an updated css command that will achieve the same result?
Table in Internet Explorer 6
Table in Internet Explorer 8
Any help would be appreciated.
John "Psycho" Siejkowski
cssclass "caption","{ color: white; background:#0000FF; font-family:times; font-size:12pt; Font-Weight: Bold }"
cssclass "columnnames","{ color:black; background:white; font-family:times; font-size:12pt }"
cssclass "table","{ border: 3px ridge #DDF; border-spacing: 4px}"
cssclass "tr","{ background: #FFCC66; Color: Blue}"
cssclass "td", "{ Text-Align: Center; font-family:times; font-size:12pt; Font-Weight: Bold }"
cssclass "span.row-odd tr", "{ font-weight: bold; background: #FF9933; Color: Black }" 'This line doesn't work in IE8
The last line (I think Carl guided me to a few years ago) is to have the odd rows formatted differently than the even rows. This worked great in IE6 and allowed the data to be easily discernable as seen in the first picture. Now that most of the PC's in our facility have updated to IE8, that command no longer works and leaves a very busy looking table that's hard to pull info from. Does anyone know of an updated css command that will achieve the same result?
Table in Internet Explorer 6
Table in Internet Explorer 8
Any help would be appreciated.
John "Psycho" Siejkowski