• Resolved josemarrae

    (@josemarrae)


    I applied the following CSS to the table showing the rows alternating colors:

    .tablepress .odd td {
    	background-color: #ff0000;
    }
    
    .tablepress .even td {
    	background-color: #CCCC99;
    }

    Attached image which shows that this rule does not apply in the first rows.

    Image

    Where can you be wrong?

    https://ww.wp.xz.cn/plugins/tablepress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter josemarrae

    (@josemarrae)

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks! The reason for this basically is that your theme is also loading CSS code that changes the alternating row colors of tables. We’ll therefore have to give your code a higher priority, by adding the !important keyword.
    Please try again with

    .tablepress .odd td {
    	background-color: #ff0000 !important;
    }
    
    .tablepress .even td {
    	background-color: #CCCC99 !important;
    }

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error stylish css’ is closed to new replies.