thead height and vert align
-
Hi Tobias,
I’m getting a really weird formatting error. Trying to;
– set a fixed height for thead
– vertically align header contentThis is what I currently have – it doesn’t quite vertically align:
.tablepress thead th { vertical-align: middle !Important; background-color: #7986CB !Important; font-family: Raleway !Important; font-size: 16px !Important; font-weight: 300 !Important; color: #F8F8F8 !Important; text-align: center; } This is what I have for tbody and it works perfectly:
.tablepress tbody td
{
height: 30px;
padding-top: 4px;
padding-bottom: 4px;
vertical-align: middle;
font-family: Raleway !Important;
font-size: 16px !Important;
font-weight: 300 !Important;
color: #282828 !Important;
text-align: center;
text-align: left;
}But when I add the following to thead (even with !important), it doesn’t qute work for mobile:
height: 30px;
padding-top: 4px;
padding-bottom: 4px;The header row height is off (too large) and the content is not vertically aligned.
Note, I’m also using fixed columns and responsive.
Shortcode is:
[table id=1 datatables_fixedcolumns_left_columns=1 responsive=”scroll” /]Thx
The page I need help with: [log in to see the link]
- The topic ‘thead height and vert align’ is closed to new replies.