html table row shading

  • Author
    Posts
  • #63330

    homedecorgb
    Member
    Original poster

    Hi, Ive put in 6 x 3 grid html table to lay out some logos, however every other row the background is shaded with a cream colour? can I add some css code to remove this, id just like the whole table to be pure white.

    Thanks.

    The blog I need help with is: spaceprocontract.wordpress.com

    #63472

    binarymoon
    Theme Author

    Hey – sure. If you add the following css then the table row backgrounds will always be white:

    table tr:nth-child(odd), table tr:nth-child(even) {
    background:#fff;
    }
    #63532

    homedecorgb
    Member
    Original poster

    Legend!

    thanks.

The topic ‘html table row shading’ is closed to new replies.