Styling
-
Hi there.
I want to have a table witha heading row of Day, then Open, CLose, Open , Close
The first row should have Monday in column 1 and then a colspan of 4 with these 4 being centred and it stating the word “Closed all day”The remaing rows (Tuesday to Sunday) should have the opening and closing times respectively.
The heading row needs to be all centred. Row 1 is to be as I described above. Clomun 1 is entirely left aligned for the body (not the head) and I would also like the column to be slightly wider.I have tried the following CSS – it is tablepress-id-4
.tablepress-id-4 thead th {
text-align: center;
}tablepress-id-4 .column-1 {
text-align: left;
}tablepress-id-4 .row2 .column-2,
tablepress-id-4 .row2 .column-3,
tablepress-id-4 .row2 .column-4,
tablepress-id-4 .row2 .column-5 {
text-align: center;
}tablepress-id-4 .column-2,
tablepress-id-4 .column-3,
tablepress-id-4 .column-4,
tablepress-id-4 .column-5 {
text-align: center;
}and I have #colspan# in columns 2 through 5 of row 1 of the body (which is row 2 of the table).
I am getting the thead all centred as I wish.
I am getting the column 1 all left aligned as I wish in the body.
The colspan appears to work but it is not being centred across the four columns
Columns 2 through 5 on table rows 2 though 8 are not being centred.
And I haven’t figured out how best to wide column one so that it fits on one line.MAny Thanks for any help you can give.
The page I need help with: [log in to see the link]
The topic ‘Styling’ is closed to new replies.