Title: CSS code not being recognised
Last modified: August 30, 2016

---

# CSS code not being recognised

 *  Resolved [vcarrington](https://wordpress.org/support/users/vcarrington/)
 * (@vcarrington)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/css-code-not-being-recognised/)
 * Hi, I’m trying to create a really simple table of 5 rows, 3 columns, with all
   15 cells the same size (300 x 200 px) – these will have hyperlinked images inside
   them to be clicked on to take the user to the relevant blog topic area.
 * I have created this in Tablepress and applied CSS code to size the cells accordingly–
   what I have done looks fine when I preview it in Tablepress BUT when I add the
   table id to the WordPress post none of the code is being recognised and everything
   is out of sync and looks awful. How is the code being overridden? And what do
   I need to do / add to make sure it works? (see some of the CSS code below)
 * Many thanks.
 * .tablepress-id-3 .column-1 {
    width: 300px; }
 * .tablepress-id-3 .column-2 {
    width: 300px; }
 * .tablepress-id-3 .column-3 {
    width: 300px; }
 * .tablepress-id-3 tr {
    height: 200px; }
 * .tablepress-id-3 .column-1 {
    padding: 4px; }
 * .tablepress-id-3 .column-2 {
    padding: 4px; }
 * .tablepress-id-3 .column-3 {
    padding: 4px; }
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/css-code-not-being-recognised/#post-6583807)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Most likely, your theme is also adding CSS code tha affects tables.
 * 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
 *  [kolkkolk](https://wordpress.org/support/users/kolkkolk/)
 * (@kolkkolk)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/css-code-not-being-recognised/#post-6584061)
 * Hi Tobias,
    I’m also have a problem with tables, can’t correct their shape. Surely
   my theme affects tables but I can’t find where. Here is the link: [http://www.videoexpertsgroup.com/all-products/](http://www.videoexpertsgroup.com/all-products/)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/css-code-not-being-recognised/#post-6584062)
 * Hi kolkkolk,
 * thanks for your post, and sorry for the trouble.
 * The table on that page has not been created with the TablePress plugin, right?
   
   That’s why the TablePress “Custom CSS” will not work here.
 * Regards,
    Tobias
 *  [kolkkolk](https://wordpress.org/support/users/kolkkolk/)
 * (@kolkkolk)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/css-code-not-being-recognised/#post-6584063)
 * Oh, sorry Tobias, I’ve been just remade the table, now on the page is a new one,
   not created in TablePress.
    Hope if I solve that problem, I will return to TablePress,
   because it is far more comfortable. I have placed the original table on the test
   page for you: [http://www.videoexpertsgroup.com/test2/](http://www.videoexpertsgroup.com/test2/)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/css-code-not-being-recognised/#post-6584064)
 * Hi,
 * thanks for the new link!
 * Can you now please explain what you want to change in this table?
    From what 
   I can see, you are successfully influencing the column width already, with “Custom
   CSS” in the TablePress Plugin Options and in your theme’s CSS area.
 * Regards,
    Tobias
 *  [kolkkolk](https://wordpress.org/support/users/kolkkolk/)
 * (@kolkkolk)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/css-code-not-being-recognised/#post-6584066)
 * Yes, but doesn’t take effect. As well as the background color doesn’t change.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/css-code-not-being-recognised/#post-6584067)
 * Hi,
 * for the background color, please try the CSS from [https://tablepress.org/faq/change-background-color-table-head-row/](https://tablepress.org/faq/change-background-color-table-head-row/)
 * Regarding the width: That’s working as far as I can see. Due to the `box-sizing`
   property, the width calculation includes the cell padding.
    You could therefore
   maybe also add
 *     ```
       .tablepress th,
       .tablepress td {
         box-sizing: border-box;
       }
       ```
   
 * Regards,
    Tobias

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

The topic ‘CSS code not being recognised’ 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

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

 * 7 replies
 * 3 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/css-code-not-being-recognised/#post-6584067)
 * Status: resolved