Title: Custom CSS with overwrite
Last modified: August 30, 2016

---

# Custom CSS with overwrite

 *  Resolved [colinlaughton](https://wordpress.org/support/users/colinlaughton/)
 * (@colinlaughton)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/custom-css-with-overwrite/)
 * Hello Tobias,
 * I would like a little help again please…
 * I have a custom CSS rule called ‘colstablecurr’ with the following code…
 * .colstablecurr,
    .colstablecurr tr, .colstablecurr tbody td, .colstablecurr thead
   th, .colstablecurr tfoot th { border: 1px solid #000000 !important; text-align:
   center; vertical-align: middle; background-color: #ffffff; font-size: 22px; }
 * .colstablecurr tr {
    height: 25px; }
 * .colstablecurr td {
    width: 10%; padding: 5px !important; }
 * .colstablecurr .row-1 td,
    .colstablecurr .row-5 td, .colstablecurr .row-9 td,.
   colstablecurr .row-13 td, .colstablecurr .row-17 td { background-color: #CB5920;
   color: #ffffff !important; }
 * .colstablecurr .row-4 td,
    .colstablecurr .row-8 td, .colstablecurr .row-12 td,.
   colstablecurr .row-16 td { border-left: 1px solid #ffffff !important; border-
   right: 1px solid #ffffff !important; }
 * I am sure this could be simplified but I have added parts along the way…
 * This code is applied to several tables as a theme for my site.
 * However…
 * I then want to add the following CSS to a table with ID 24 that also uses the
   above CSS…basically I want the following CSS to overwrite the above entry relating
   to font align: center
 * .tablepress-id-24 .row-3 .column-1 td {
    text-align: center important!; }
 * Yet it does nothing… I can seem to put any CSS in there and the table only responds
   to the code added to ‘colstablecurr’
 * What is my silly mistake?
 * Many thanks,
 * Colin
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Thread Starter [colinlaughton](https://wordpress.org/support/users/colinlaughton/)
 * (@colinlaughton)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/custom-css-with-overwrite/#post-6742429)
 * sorry..I mean this to overwrite
 * .tablepress-id-24 .row-3 .column-1 td {
    text-align: left; }
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/custom-css-with-overwrite/#post-6742439)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Your CSS is slightly wrong. Please try
 *     ```
       .tablepress-id-24 .row-3 .column-1 {
         text-align: left !important;
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [colinlaughton](https://wordpress.org/support/users/colinlaughton/)
 * (@colinlaughton)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/custom-css-with-overwrite/#post-6742442)
 * Yessssss it worked!
 * Thank you !
 *  Thread Starter [colinlaughton](https://wordpress.org/support/users/colinlaughton/)
 * (@colinlaughton)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/custom-css-with-overwrite/#post-6742444)
 * If you are ever looking at an application of your excellent work…jump over to
   webserver.hebburn.net and select the curriculum menu link…each department will
   be using your tables!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/custom-css-with-overwrite/#post-6742446)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * And thanks for the link! It’s always nice to see how people are using the plugin!
 * Best wishes,
    Tobias

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

The topic ‘Custom CSS with overwrite’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

## Tags

 * [overwrite](https://wordpress.org/support/topic-tag/overwrite/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/custom-css-with-overwrite/#post-6742446)
 * Status: resolved