user1250526 user1250526 - 7 days ago 5
CSS Question

Is there a way to take off the style off a certain table?

I have a css file which styles my tables, although I have one table where I would like to use a different style, or no style? is there a way I can do something like

<table style="no-style">
and then it is plain and ignores the CSS?

I have looked but I can not find anything related!

Answer

Use class definitions for table properties in your CSS file. Whenever you want them, use with class property.

CSS

table.myClass {
...
}

HTML

<table class="myClass">...</table>
<table class="anotherTableWithAnotherClass">...</table>