Ready to get started?Download WordPress


Changing colours in table cells (7 posts)

  1. neuroplastic
    Posted 2 years ago #


    This is my releases page on my development site:


    Isn't it nice? (Ignore that the pics are all the same!) All except that hideous cream colour in the alternate rows. I went to my CSS and changed the thead colour to #ffffff but something must be overriding that because the colour is still cream. If anyone can figure out how to get all the table rows nice and white, that would be great.


  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Try using Firefox with the Firebug add-on for this kind of CSS work.

  3. j3ddesign
    Posted 2 years ago #

    me again ;)

    where you have (bgcolor="fffff") it should be "background-color" :D

  4. neuroplastic
    Posted 2 years ago #

    I followed both your suggestions and now the colour's a pale grey instead of cream, which is better but still not what i want. Hmmm.

  5. j3ddesign
    Posted 2 years ago #

    Ah, found it!

    .main-content article table tr:nth-child(2n) { background: rgba(0,0,0,0.05) }
    Change it to:
    .main-content article table tr:nth-child(2n) { background: white;}

    (Line 201 style.css)

  6. neuroplastic
    Posted 2 years ago #

    Thank you!

    God I love these forums. Full of smart people :-)

    Really appreciate it j3d and esmi. Firebug is a great little add-on

  7. j3ddesign
    Posted 2 years ago #

    Your welcome.
    Yeah development would be a hell of a lot slower without "inspect element" in Chrome (effectively the same thing as Firebug, i just prefer the layout & Chrome :D)

    Glad you got it sorted, best of luck to you!

Topic Closed

This topic has been closed to new replies.

About this Topic