Title: Border for top row
Last modified: May 27, 2019

---

# Border for top row

 *  Resolved [holiguide](https://wordpress.org/support/users/holiguide/)
 * (@holiguide)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/border-for-top-row/)
 * Hi, I used the codes found in the support links. But the top row (header) doesn’t
   get the border somehow. What is the mistake I am doing here.
 * I used the following code:
    .tablepress-id-1 tbody td { border: 1px solid #cccccc!
   important; }
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fborder-for-top-row%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/border-for-top-row/#post-11575816)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * To add a border to the header row as well, you will need the CSS
 *     ```
       .tablepress-id-1 thead th,
       .tablepress-id-1 tbody td {
         border: 1px solid #cccccc !important;
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [holiguide](https://wordpress.org/support/users/holiguide/)
 * (@holiguide)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/border-for-top-row/#post-11586799)
 * works like a charm! Thank you Tobias:-)
 *  Thread Starter [holiguide](https://wordpress.org/support/users/holiguide/)
 * (@holiguide)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/border-for-top-row/#post-11587138)
 * Hi Tobias: I have another question. I tried to add another table in a different
   page in my blog. But this time the borders dont work despite me already adding
   the CSS code in the “Customize” section of the backend. Plus I also added the
   CSS in the plugin options. But it doesn’t work!
 * Link to the post:
 * [https://holiguide.in/2019/04/29/the-best-water-purifiers-of-2019/](https://holiguide.in/2019/04/29/the-best-water-purifiers-of-2019/)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/border-for-top-row/#post-11587151)
 * 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/)
   here in the plugin directory. Thanks!
 *  Thread Starter [holiguide](https://wordpress.org/support/users/holiguide/)
 * (@holiguide)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/border-for-top-row/#post-11610716)
 * Hi Tobias, Could you kindly respond to my question above. The CSS code you suggested
   is not working for other tables in the same blog.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/border-for-top-row/#post-11617790)
 * Hi,
 * ah, sorry, I must have missed that second question.
 * The table on that page has ID 5, but you only have CSS for table 1 in the “Custom
   CSS” on the “Plugin Options” screen of TablePress. You need to copy that CSS 
   and change the table ID 🙂
 * Regards,
    Tobias
 *  Thread Starter [holiguide](https://wordpress.org/support/users/holiguide/)
 * (@holiguide)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/border-for-top-row/#post-11647540)
 * thank you Tobias! That works perfect:)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/border-for-top-row/#post-11648438)
 * 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 8 replies - 1 through 8 (of 8 total)

The topic ‘Border for top row’ 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

 * [border](https://wordpress.org/support/topic-tag/border/)
 * [Heuman](https://wordpress.org/support/topic-tag/heuman/)
 * [table](https://wordpress.org/support/topic-tag/table/)

 * 8 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/border-for-top-row/#post-11648438)
 * Status: resolved