• Resolved sunday33

    (@sunday33)


    Hi there, I am hoping someone can help me with trying to style two tables separately.

    I have used the .tablepress-ID-N method, and the previews for the two tables are coming up as expected, but the colours on the pages don’t match the preview or the CSS I have set up.

    Here is the code I am using:

    .tablepress-id-1 thead th,
    .tablepress-id-1 tfoot th {
    	background-color: #FF5EA4;
    	color: #ffffff;
    }
    
    .tablepress-id-1 .sorting:hover,
    .tablepress-id-1 .sorting_asc,
    .tablepress-id-1 .sorting_desc {
    	background-color: #c36;
    }
    
    .tablepress-id-3 thead th,
    .tablepress-id-3 tfoot th {
    	background-color: #0071C3;
    	color: #ffffff;
    }
    
    .tablepress-id-3 .sorting:hover,
    .tablepress-id-3 .sorting_asc,
    .tablepress-id-3 .sorting_desc {
    	background-color: #004F88;
    }

    Both tables are showing the styling for #1 and I have tried swapping the order, they still both show the styling for #1.

    Am I missing something? Functionally they are both perfect, I just need to distinguish them visually from one another!

    Thank you in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter sunday33

    (@sunday33)

    Hi, thank you for responding so fast!

    Sure thing, I have put both on the same page for ease of viewing – https://www.novusapartments.co.uk/table-testing/

    The first table looks as it should do, but the second should have shades of blue where there is currently pink

    Appreciate the help!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for the link! From what I can see, you are using a caching plugin on the site (“Hummingbird”) that also caches CSS files and moves them to a CDN.
    Thus, you’ll likely just have to manually flush that plugin’s cache or the files on the CDN.

    Regards,
    Tobias

    Thread Starter sunday33

    (@sunday33)

    Thank you so much, that’s worked perfectly!

    Really appreciate your help!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias
     
    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Table styling not showing up’ is closed to new replies.