CSS selector for data table?



  • I am trying to style my data table using scoped CSS but I simply can’t.

    I applied a custom class to my q-table called “price-table”.

    Then I tried hundreds of different selectors to try and style the elements but nothing is applied when I use scoped.

    When I remove scoped however, it works…

    How do I do this?

    CSS selectors I tested to try and change the th font color for example:

    // Works without "scoped"
    .price-table table th {
      color: red;
    }