Title: Missing border
Last modified: March 27, 2023

---

# Missing border

 *  Resolved [matts82](https://wordpress.org/support/users/matts82/)
 * (@matts82)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/missing-border-2/)
 * Hi Tobias,
 * I’ve used the following code to put borders on a table:
 * .tablepress tbody td {
   border: 1px solid #000000 !important;}
 * However, the border doesn’t go round the header or footer – do I need additional
   code for that?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmissing-border-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/missing-border-2/#post-16597759)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Correct, this code only affects table body cells (indicated by `td` in HTML and
   CSS code). The header and footer row use `th` (“table head”) markup, so that 
   you would need to extend the CSS code to
 *     ```wp-block-code
       .tablepress th,
       .tablepress td {
         border: 1px solid #000000 !important;
       }
       ```
   
 * (You won’t need the `tbody` here either, due to the `!important` flag.)
 * Best wishes,
   Tobias
 *  Thread Starter [matts82](https://wordpress.org/support/users/matts82/)
 * (@matts82)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/missing-border-2/#post-16597815)
 * That’s great thanks – the only thing now is I don’t have a border between the
   header and the opening row?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/missing-border-2/#post-16599060)
 * Hi,
 * that’s in Firefox, right? There’s a long-standing Firefox bug regarding border
   lines in table head cells, unfortunately 🙁
   (This might be another reason against
   using vertical border lines, in addition to them being detrimental to readability
   of table data.)
 * Regards,
   Tobias
 *  Thread Starter [matts82](https://wordpress.org/support/users/matts82/)
 * (@matts82)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/missing-border-2/#post-16599067)
 * That’ll explain it then…
 * Thanks for your help (again)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/missing-border-2/#post-16599156)
 * 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](https://wordpress.org/support/plugin/tablepress/reviews/#new-post)
   in the plugin directory. Thanks!

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

The topic ‘Missing border’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/missing-border-2/#post-16599156)
 * Status: resolved