CSS styling and fixed column 1
-
Hi there
I am attempting to get the second table on my dev page to match the appearance of the existing one above it, which will be deleted later.
I want the first column to be left aligned and fixed in place so that when scrolling the table left and right on screen (especially on mobile) the first column is always there.
I want the text in all other columns to be centred horizontally and the text in all fields to be centred vertically.
Finally, I’m trying to change the header and text colouring.
Below is the custom CSS I have tried to get things looking right, but the only thing that seems to change is the table borders.
.tablepress-id-1 .tablepress thead th, .tablepress tfoot th { background-color: #B82601; color: #ffffff; } .tablepress-id-1 td { vertical-align: middle; } .tablepress-id-1 .column-B, .tablepress-id-1 .column-C, .tablepress-id-1 .column-D { width: 200px; text-align: center; } .tablepress-id-1, .tablepress-id-1 tr, .tablepress-id-1 tbody td, .tablepress-id-1 thead th, .tablepress-id-1 tfoot th { border: 1px solid #f1f1f1; }
The page I need help with: [log in to see the link]
- The topic ‘CSS styling and fixed column 1’ is closed to new replies.