chris chris - 2 months ago 9
CSS Question

How to remove all inherited CSS formatting for a table?

I have a table which has a certain style due to the CSS file for the page (it has blue borders, etc...).

Is there a simple way to remove the CSS for that specific table?
I was thinking something along the lines of a command like:

style="nostyle"


Does anything like this exist?

Answer

Try this.

From Eric Meyer's Reset CSS

table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}
Comments