Title: Table Order
Last modified: August 15, 2018

---

# Table Order

 *  Resolved [mohammadia](https://wordpress.org/support/users/mohammadia/)
 * (@mohammadia)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/table-order/)
 * Hi,
 * I can see in the default theme that there are no outside borders, but when I 
   am adding the table, outside borders are being created and added to the table.
 * > [View post on imgur.com](https://imgur.com/a/ysUdfM0)
 * Why? How can I remove it?

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/table-order/#post-10592282)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * This indicates that they are added by your theme. 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 [mohammadia](https://wordpress.org/support/users/mohammadia/)
 * (@mohammadia)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/table-order/#post-10592301)
 * Sure.
 * [https://www.settleoutdoor.com/snorkeling-vs-scuba-diving-the-definitive-guide/](https://www.settleoutdoor.com/snorkeling-vs-scuba-diving-the-definitive-guide/)
 * + I have included the CSS code for the table to be aligned center but that too
   isnt happening.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/table-order/#post-10592396)
 * Hi,
 * to remove the vertical borders, please also add
 *     ```
       .tablepress,
       .tablepress tr,
       .tablepress th,
       .tablepress td {
           border-left: none !important;
           border-right: none !important;
       }
       ```
   
 * to the “Custom CSS”.
 * Regarding the centering: I’m not sure what you mean. The table is stretching 
   to 100% of the content area. It will not extend further to the right (just like
   your text won’t), because this is the space for the sidebar.
 * Regards,
    Tobias
 *  Thread Starter [mohammadia](https://wordpress.org/support/users/mohammadia/)
 * (@mohammadia)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/table-order/#post-10592426)
 * Hi Tobias
 * Just to be sure , I want the inner grids, just want the outer border to removed.
   Can that be done ?
 * I want the table to be centre aligned.
 *  Thread Starter [mohammadia](https://wordpress.org/support/users/mohammadia/)
 * (@mohammadia)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/table-order/#post-10592453)
 * + Why does the edit link for the table appear in the post?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/table-order/#post-10592746)
 * Hi,
 * ok, then please use
 *     ```
       .tablepress,
       .tablepress th:first-child,
       .tablepress td:first-child {
           border-left: none !important;
       }
       .tablepress,
       .tablepress th:last-child,
       .tablepress td:last-child {    
           border-right: none !important;
       }
       ```
   
 * What do you mean with “center aligned” here? The text inside the table cells?
   Or the table on the page?
 * The “Edit” screen is only shown for you, when you are logged-in. It’s not visible
   for regular visitors.
 * Regards,
    Tobias
 *  Thread Starter [mohammadia](https://wordpress.org/support/users/mohammadia/)
 * (@mohammadia)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/table-order/#post-10592759)
 * Both, the text inside the table cells and the table on the page?
 *  Thread Starter [mohammadia](https://wordpress.org/support/users/mohammadia/)
 * (@mohammadia)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/table-order/#post-10592791)
 * What is the difference in both codes?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/table-order/#post-10592959)
 * Hi,
 * the second chunk of code removes the border from the left and right of the outside
   cells only.
 * For centering the text in the cells, please try
 *     ```
       .tablepress thead th,
       .tablepress tbody td {
         text-align: center;
       }
       ```
   
 * Centering the table on the page is not really possible here. The table is already
   using all the space of the container that it is in (so technically, it is centered).
   Having it more on the right is not directly possible, because that space is reserved
   for your sidebar, by the theme.
 * Regards,
    Tobias
 *  Thread Starter [mohammadia](https://wordpress.org/support/users/mohammadia/)
 * (@mohammadia)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/table-order/#post-10593618)
 * Thanks a lot Tobias !
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/table-order/#post-10593629)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
    Tobias

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

The topic ‘Table Order’ 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/)

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