I'm not a CSS expert but I believe my code should work (?).

I can make my code work without applying any class, but sometimes I need to restrict some tables from inherit a class.

**[JSFiddle](http://jsfiddle.net/wazub79L/) working** without applying a class in the `<table>`.

**[JSFiddle](http://jsfiddle.net/L15v3kjf/) not working** while applying a class in the `<table>`.

![enter image description here](https://i.stack.imgur.com/P5XRv.png)

![enter image description here](https://i.stack.imgur.com/90kty.png)