Title: Center table name
Last modified: August 30, 2016

---

# Center table name

 *  Resolved [BitEdge](https://wordpress.org/support/users/whatwhatwhatwhat/)
 * (@whatwhatwhatwhat)
 * [11 years ago](https://wordpress.org/support/topic/center-table-name/)
 * Hi guys,
 * If we select Show the table name above the table how can we make it centred instead
   of justified left?
 * Also how can we get the lines the run between rows as border lines around the
   edges of cells or the whole table?
 * Thanks
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Thread Starter [BitEdge](https://wordpress.org/support/users/whatwhatwhatwhat/)
 * (@whatwhatwhatwhat)
 * [11 years ago](https://wordpress.org/support/topic/center-table-name/#post-6380655)
 * I found the answer to the first question is to inmput
 * <center>Table name here</center> in the table: field.
 * One more problem has come up though, the exact same shadow box code
 *     ```
       .tablepress-id-2 {
       	-moz-box-shadow: 0 0 8px 4px #aaa;
       	-webkit-box-shadow: 0 0 8px 4px #aaa;
       	box-shadow: 0 0 8px 4px #aaa;
       }
       ```
   
 * that works beautifuly here
 * [http://www.bitedge.co/blog/cloudbet-vs-nitrogen-sports-bitcoin-sportsbook-comparison/](http://www.bitedge.co/blog/cloudbet-vs-nitrogen-sports-bitcoin-sportsbook-comparison/)
 * Is not working here
 * [http://www.bitroll.co/dice-investment-comparison/](http://www.bitroll.co/dice-investment-comparison/)
 * If you watch the page load closely it actually looks perfect until the last second
   when it half breaks.
 * Thanks for reading.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years ago](https://wordpress.org/support/topic/center-table-name/#post-6380676)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Yes, using `<center>` should work for the centering, but usually some CSS is 
   better.
 * For that shadow: The reason for this is that the second table is using the features
   of the DataTables JS library, due to which the table is wrapped by extra container
   elements.
    You might therefore want to try to apply the shadow to those elements,
   e.g. with
 *     ```
       .dataTables_wrapper {
       	-moz-box-shadow: 0 0 8px 4px #aaa;
       	-webkit-box-shadow: 0 0 8px 4px #aaa;
       	box-shadow: 0 0 8px 4px #aaa;
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [BitEdge](https://wordpress.org/support/users/whatwhatwhatwhat/)
 * (@whatwhatwhatwhat)
 * [11 years ago](https://wordpress.org/support/topic/center-table-name/#post-6380784)
 * That works thanks 🙂 there is one more thing from the OP that I still need to
   know please.
 * how can we get the lines the run between rows as border lines around cells or
   around the whole table?
 * Thanks
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years ago](https://wordpress.org/support/topic/center-table-name/#post-6380788)
 * Hi,
 * great to hear that this helped!
 * And sorry for missing that question on the border lines… Adding those to all 
   cells is e.g. possible with this “Custom CSS”:
 *     ```
       .tablepress th,
       .tablepress td {
           border: 1px solid #cccccc;
       }
       ```
   
 * (Note that vertical borders are regarded as having negative impacts on readability
   of the table data, which is why they are not really recommended.)
 * Regards,
    Tobias

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

The topic ‘Center table name’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/center-table-name/#post-6380788)
 * Status: resolved