Let’s go in pieces, that code
table, thead, tbody, th, td, tr {
display: block;
}
is putting diplay block on all these elements:
table
thead
tbody
th
td
tr
Using the pattern of W3 to have the "original" effect of the table you would have to do something like this:
table.tabela-isolada { display: table !important; }
table.tabela-isolada tr { display: table-row !important; }
table.tabela-isolada thead { display: table-header-group !important; }
table.tabela-isolada tbody { display: table-row-group !important; }
table.tabela-isolada tfoot { display: table-footer-group !important; }
table.tabela-isolada col { display: table-column !important; }
table.tabela-isolada colgroup { display: table-column-group !important; }
table.tabela-isolada td,
table.tabela-isolada th { display: table-cell !important; }
table.tabela-isolada caption { display: table-caption !important; }
And to avoid problems with property overwriting, enter this CSS later than you put the display: block
.
+1 It would be easier to visualize if there were line breaks in commas :)
– Leandro Amorim
@Leandroamorim: I think so too, I edited the answer. = D
– Miguel Angelo