Could someone clarify the method of applying a set of styles to a WikiText tables.
I have some CSS that I want to use for one table:
table {
width: 100%;
border-collapse: collapse;
}
/* Zebra striping */
tr:nth-of-type(odd) {
background: #eee;
}
th {
background: #333;
color: white;
font-weight: bold;
}
td, th {
padding: 6px;
border: 1px solid #ccc;
text-align: left;
}
Now if I put this in a tiddler tagged $:/tags/Stylesheet it is applied to all my tables. So I need a custom class. Can I do this for the whole stylesheet and apply it to the WikiText table with a ‘k’ flag or do I need a separate style for each element?
e.g.
|myclass|k