Title: Custom CSS
Last modified: June 24, 2020

---

# Custom CSS

 *  Resolved [raltok](https://wordpress.org/support/users/raltok/)
 * (@raltok)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-css-255/)
 * How can I add a border top to the table with custom CSS?

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-css-255/#post-13029385)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Normally, something like
 *     ```
       .tablepress td {
         border: 1px solid #cccccc !important;
       }
       ```
   
 * should add a top border to every row.
 * Regards,
    Tobias
 *  Thread Starter [raltok](https://wordpress.org/support/users/raltok/)
 * (@raltok)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-css-255/#post-13029410)
 * Hey Tobias,
 * Thanks for the reply.
 * I’m using a 5 row x 2 column table. I would like to add a black solid border 
   to the top and button of the table (there are no borders for columns, and I’m
   using a light grey, thinner border for inner rows). Hope that’s clearer. Thanks
   for your help!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-css-255/#post-13029510)
 * Hi,
 * 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 [raltok](https://wordpress.org/support/users/raltok/)
 * (@raltok)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-css-255/#post-13029523)
 * It is not a problem, we would just like the code to add a top border to the top
   row if that’s possible.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-css-255/#post-13029618)
 * Hi,
 * maybe something like
 *     ```
       .tablepress {
         border-top: 1px solid #000000 !important;
         border-bottom: 1px solid #000000 !important;
       }
       ```
   
 * then.
 * Regards,
    Tobias
 *  Thread Starter [raltok](https://wordpress.org/support/users/raltok/)
 * (@raltok)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-css-255/#post-13029676)
 * Hey Tobias,
 * Thanks a lot for this, it works. How can I decrease the height of the rows, and
   also make the top and button border a bit ticker?
 * Thank you
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-css-255/#post-13029730)
 * Hi,
 * maybe try
 *     ```
       .tablepress {
         border-top: 3px solid #000000 !important;
         border-bottom: 3px solid #000000 !important;
       }
       ```
   
 * for a thicker border.
 * To reduce the height, try
 *     ```
       .tablepress th,
       .tablepress td {
         padding: 6px !important;
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [raltok](https://wordpress.org/support/users/raltok/)
 * (@raltok)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-css-255/#post-13029849)
 * Works! Thanks 🙂
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-css-255/#post-13030080)
 * 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](https://wordpress.org/support/plugin/tablepress/reviews/#new-post)
   here in the plugin directory. Thanks!

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

The topic ‘Custom CSS’ 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](https://wordpress.org/support/topic-tag/css/)
 * [tables](https://wordpress.org/support/topic-tag/tables/)

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