Support » Plugin: Make Tables Responsive » I’d like to change color to first table cell.

  • Resolved mame777

    (@mame777)


    Thanks for great plugin!

    I’d like to change color to first table cell.

    td:first-child {
      background: #BBC000 !important;
      font-weight: bold;
    }

    But, I cannot get good results. Do you have any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Nikolay Nikolov

    (@nnikolov)

    @mame777
    Hi.
    Thanks, I am glad you like it :).
    This is because my CSS rules also have the !important attribute, but are also more specific than the one you are adding, so they win priority.
    If you use this code instead, it should have higher priority than my rules. I tried on my site and it worked. It will do the same as your code:

    .mtr-table tr:nth-child(odd) .mtr-td-tag:first-child,
    .mtr-table tr:nth-child(even) .mtr-td-tag:first-child {
      background: #BBC000 !important;
      font-weight: bold;
    }

    If this does not work, you will have to use the option to disable styling in the plugin settings. But then you will have to add more CSS code to add your own colors and borders.
    If these solutions are not good for you, please let me know and I will add an option to make my rules without !important.
    Regards.

    Hi, Thank you for teaching me very kindly.
    Perfect answer! I resolved.

    Plugin Author Nikolay Nikolov

    (@nnikolov)

    Great, you are welcome.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I’d like to change color to first table cell.’ is closed to new replies.