Alignment problem with rotated headers
-
Hi,
I’m having trouble with aligning column headers after I’ve rotated the text. The first two column headers aren’t rotated, but the rest are. It looks as though the headers are all shifted one column to the left.
Also, I’ve set column widths in the CSS, but they don’t appear to be applying correctly.
And here’s my custom CSS:
.tablepress-id-16 td,
.tablepress-id-16 tr,
.tablepress-id-16 tbody td,
.tablepress-id-16 thead th,
.tablepress-id-16 tfoot th {
border: 1px solid #DDDDDD;
font-size: 10px;
}.tablepress-id-16 .row-1 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;
height: 75px;
text-align: center;
vertical-align: center;
}.tablepress thead th,
.tablepress tbody tb {
text-align: center;
vertical-align: bottom;
border: 1px solid #DDDDDD;
}.tablepress-id-16 {
white-space: nowrap;
margin: 0 auto 1em;
width: 405px !important;
}.tablepress-id-16 .column-2 {
width: 75px;
}.tablepress-id-16 .column-1,
.tablepress-id-16 .column-3,
.tablepress-id-16 .column-4,
.tablepress-id-16 .column-5,
.tablepress-id-16 .column-6,
.tablepress-id-16 .column-7,
.tablepress-id-16 .column-8,
.tablepress-id-16 .column-9,
.tablepress-id-16 .column-10,
.tablepress-id-16 .column-11,
.tablepress-id-16 .column-12,
.tablepress-id-16 .column-13,
.tablepress-id-16 .column-14,
.tablepress-id-16 .column-15,
.tablepress-id-16 .column-16,
.tablepress-id-16 .column-17,
.tablepress-id-16 .column-18,
.tablepress-id-16 .column-19,
.tablepress-id-16 .column-20,
.tablepress-id-16 .column-21,
.tablepress-id-16 .column-22,
.tablepress-id-16 .column-23 {
width: 15px;
}Thanks,
Tim
- The topic ‘Alignment problem with rotated headers’ is closed to new replies.