Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1362790

    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

    #1362814

    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

    #1362894

    Yes, done.

    #1362897

    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

    #1362900

    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?

    #1362912

    Hi,

    Thanks for the update. The example page doesn’t seem to exist anymore, could you check please?

    Best regards,
    Rikard

    #1362933

    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.

    #1362953

    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

    #1364056

    Thank you! This works!

    #1364058

    Hi,

    We are happy that Rikard could help! Let us know if you have any other questions and enjoy the rest of your day :)

    Best regards,
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Custom CSS to style standard post table’ is closed to new replies.