Three table formatting questions
-
Hi
Thanks for your help so far with the above table. I have three problems left!
1. I used the code from the FAQs to centre the table, but it still shows up on the left
/*fixed width table and centre*/
.tablepress-id-14 {
width: auto;
margin: 0 auto 1em;
}
2. I used the code you helped me with to rotate the column headings, but the last column wraps and looks ugly and the text is to the left of the cells and I would like it centred. I have tried some extra code to fix this!
/*rotate header text*/
.tablepress-id-14 thead tr {
padding: 10px;
height: 300px;
text-align: middle;
}.tablepress-id-14 thead th {
vertical-align: bottom;
text-align: middle;
}.tablepress-id-14 thead th span {
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
transform: rotate(-90deg);
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
display: block;
width: 20px !important;
}3. Some of the rows are double height on smaller screens, so I would like to align the text in the middle (vertical) of the rows. I have tried this code.
.tablepress-id-14 .column-2,
.tablepress-id-14 .column-3,
.tablepress-id-14 .column-4,
.tablepress-id-14 .column-5,
.tablepress-id-14 .column-6,
.tablepress-id-14 .column-7,
.tablepress-id-14 .column-8,
.tablepress-id-14 .column-9,
.tablepress-id-14 .column-10,
.tablepress-id-14 .column-11,
.tablepress-id-14 .column-12 {
width: 100px;
text-align: center;
text-align: middle;
}Just incase some other code is getting in the way, this is the rest of the CSS I have used for this table.
/*first column and header colour*/
#content .tablepress-id-14 thead th,
#content .tablepress-id-14 tfoot th,
#content .tablepress-id-14 .column-1 {
background-color: #00b2b2;
color: #ffffff;
}/*border colour*/
.tablepress-id-14 tbody td {
border: 1px solid #005959 !important;
}/*column widths*/
.tablepress-id-14 .column-1 {
padding: 10px;
width: 350px;
}I hope you can help ??
m
The page I need help with: [log in to see the link]
- The topic ‘Three table formatting questions’ is closed to new replies.