How to remove all inherited CSS formatting for a table?

chris picture chris · Jun 9, 2009 · Viewed 64.2k times · Source

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

Kristof Neirynck picture Kristof Neirynck · Jun 9, 2009

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;
}