Creating a class for multiple tables
-
Hi,
I create a table (in TablePress) for each week and each of the five divisions in our golf pennant series.
So far, I have had to go into the Plugin Options tab each time I create a table and add the code and then change the table number.
I am up to table 43 and still have a few weeks to go.
1. Do I have to leave all sets of commands in the PlugIn Options box, for them to apply every time the table is opened, either to edit the table or more importantly when it is viewed on the specific page?
2. Is there a way I can create a single command/class to apply to new tables that picks up the whole code for that table?
3. If it can be done, where and how.I have finally got the table looking how I want it (although I cannot get columns 2 and 5 to align left as per the page above).
Also, you will notice I have applied the following to only the first two tables displaying on that page and would love to have a much more simpler way of achieving this look across all of the other tables for this division and the other four.
.tablepress-id-43 .column-1,
.tablepress-id-43 .column-2,
.tablepress-id-43 .column-3,
.tablepress-id-43 .column-4,
.tablepress-id-43 .column-5,
.tablepress-id-43 .column-6,
.tablepress-id-43 .column-7,
.tablepress-id-43 .column-8 {
padding: 10px;
}.tablepress-id-43 .column-1 {
text-align: left;
width: 20%;
}.tablepress-id-43 .column-2 {
width: 15%;
text-align: left;
}.tablepress-id-43 .column-3 {
text-align: center;
width: 7%;
}.tablepress-id-43 .column-4 {
text-align: center;
width: 7%;
}.tablepress-id-43 .column-5 {
text-align: left;
width: 15%;
}.tablepress-id-43 .column-6 {
text-align: center;
width: 7%;
}.tablepress-id-43 .column-7 {
text-align: center;
width: 7%;
}.tablepress-id-43 .column-8 {
text-align: left;
width: 22%;
}As you can imagine, it is very much a nuisance task which I have to do each week for each of the divisions AND the Women’s season is about to start.
The page I need help with: [log in to see the link]
The topic ‘Creating a class for multiple tables’ is closed to new replies.