What is the Custom CSS to control the standard WordPress post table styling? These are the style items:
table header
font-size: 16px;
font-weight: bold;
text position: align left, no full width justification
font color: #222222
font: Open Sans, same as theme
table body
font-size: 16px;
text position: align left, no full width justification
font color: #666666
font: Open Sans, same as theme
table rows
alternating background colors: #e4f1f5 and white
cell padding: 5px or 2% equal on all sides of cell
Hey m,
Could you post a link to where we can see the actual elements please? If you have a screenshot highlighting the changes you would like to make, then please share that with us as well.
Best regards,
Rikard
Yes, done.
Hi,
Please try this in Quick CSS:
.wp-block-table th {
font-size: 16px;
font-weight: bold;
color: #222;
}
.wp-block-table td {
font-size: 16px;
color: #666;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
background-color: #e4f1f5;
}
Best regards,
Rikard
Thank you! This helped with many of the items. Can CSS control these?:
table header
text position: align left, no full width justification
table body
text position: align left, no full width justification
table rows
cell padding: 5px or 2% equal on all sides of cell
Also, can the column widths be controlled with %’s?
Hi,
Thanks for the update. The example page doesn’t seem to exist anymore, could you check please?
Best regards,
Rikard
It’s there, you have to be signed in to see it. The site has been updated with the new CSS and some table tweaks.
Hi,
Please try this CSS instead:
.wp-block-table th {
font-size: 16px;
font-weight: bold;
color: #222;
padding: 5px;
}
.wp-block-table td {
font-size: 16px;
color: #666;
text-align: left;
padding: 5px;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
background-color: #e4f1f5;
}
Best regards,
Rikard
Thank you! This works!