1

Designing a simple HTML table that I am going to implement alternate-row coloring on... but before I even start to do this, it appears that FF4 has applied alternate-row coloring automatically to the plain HTML table. Even after specifying my own alternate row colors that are shown properly in IE, Chrome, etc, FF still shows it's own chosen color for the alternate rows (odd numbered rows), which is a light blue color.

I've searched all over, but can't find anything related to this issue - anyone have a solution? Some FF-specific CSS I need to include to 'force' it to show my alternate color scheme?

Here is the table markup:

<table id="myTable">
  <tr><td>Bill</td><td>Smith</td></tr>
  <tr class="rowAlternate"><td>Joe</td><td>Blow</td></tr>
</table>

Here is the CSS I am using:

#myTable {margin: 0;}
#myTable tr {background-color: white;}
#myTable tr.rowAlternate {background-color: #EEE;}  
thirtydot
  • 224,678
  • 48
  • 389
  • 349
Unpossible
  • 10,607
  • 22
  • 75
  • 113
  • 5
    Please post a sample of your table markup – Oded Jun 21 '11 at 19:20
  • 2
    This shouldn't happen. Can you show a live example? – Pekka Jun 21 '11 at 19:21
  • 1
    Have you loaded the page in FF safemode? I have a similar project running now with no issues whatsoever. I bet you have some plugin mucking it up. – meteorainer Jun 21 '11 at 19:22
  • This can happen if you have decided to implement your own styling for any page that you visit. FF supports this type of behavior. – Woot4Moo Jun 21 '11 at 19:22
  • 5
    If you have Firebug installed it will show you where the row is getting its styles from. – Dave Rager Jun 21 '11 at 19:25
  • 1
    Firebug did it... zebra-style row-coloring coming from Blueprint CSS that for some reason was ONLY being picked up by FF. Overriding the correct CSS tags did it: http://stackoverflow.com/questions/4512731/how-to-create-a-table-without-alternating-row-colors-when-using-blueprint-css-fra – Unpossible Jun 21 '11 at 19:33

1 Answers1

1

FYI, solution is here: How to create a table WITHOUT alternating row colors when using Blueprint CSS framework?

Not sure if I should delete this question or not.

Community
  • 1
  • 1
Unpossible
  • 10,607
  • 22
  • 75
  • 113