Skip to content
Advertisement

css for a specific table header

I have a table implemented using a third party library. There i have something like the below code when inspecting the elements.

JavaScript

I want to write a css class for th where colspan="3" . The colspan="3" part is the only difference between the code blocks. How do i write a custom class to override the css properties from the library?

Advertisement

Answer

Use an attribute selector:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement