Title: Table Formatting
Last modified: January 10, 2024

---

# Table Formatting

 *  Resolved [watchmakingtools](https://wordpress.org/support/users/watchmakingtools/)
 * (@watchmakingtools)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/table-formatting-8/)
 * Is it possible to amend the colour of horizontal rows background colour in alternate
   rows in wpDataTables?
 * Also, is it possible to set a custom column width for each column?

Viewing 1 replies (of 1 total)

 *  Plugin Author [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * (@wpdatatables)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/table-formatting-8/#post-17348928)
 * Hello,
   Firstly, I would like to sincerely apologize for the delayed response 
   as we have been experiencing an unusually high number of tickets. I am sorry 
   that it has taken longer than usual to respond to your concern and your patience
   is highly appreciated.
 * Yes, you will be able to use Custom CSS on the Lite Plugin Version in order to
   set a specific background color for ‘even’ rows, and a different background color
   for “odd” rows.
 * Here is the CSS selector if you wish to apply a specific background color ( in
   this example as green) and a text color as white to each “odd row”.
 * .wpdt-c .wpDataTablesWrapper table.wpDataTable tr.odd td {
       background-color:
   green !important;    color: white !important;}
 * ![](https://i0.wp.com/ticksy_attachments.s3.amazonaws.com/8448778090.png?ssl=
   1)
 * And this CSS selector if you wish a specific background-color and text color 
   for each “even” row cell data :
 * .wpdt-c .wpDataTablesWrapper table.wpDataTable tr.even td {
       background: red!
   important;    color: white !important;}
 * ![](https://i0.wp.com/ticksy_attachments.s3.amazonaws.com/8884377685.png?ssl=
   1)
 * If you want to have the same Style applied to all Tables, add this in the Main
   Plugin settings/Custom JS and CSS/Custom CSS;
 * Or if you wish to target only a specific Table ID, add the Table ID like this:
 * .wpdt-c .wpDataTablesWrapper table.wpDataTable.wpDataTableID-128 tr.even td {
   
   background: red !important;    color: white !important;}
 * Just change from ID 128 to your Table ID.
 * 
   We hope that helps.
 * That is the way for the Lite Version. In our Premium version, it is easier since
   each table can have its own Customize Section, but we are not allowed to discuss
   anything about that here.
   If you have any questions about premium features such
   as that, please open a ticket on our [main Support platform here](https://tmsplugins.ticksy.com/),
   and one of our Agents will respond as quickly as possible.
 * Premium products are not supported in these forums, as per [this comment](https://wordpress.org/support/topic/error-when-not-logged-into-wordpress-backend/#post-15050671)
   by WordPress.org moderators.
 * Thank you for understanding. ​
 * 
   2. When it comes to making Custom Column Width, you can achieve this if you 
   enable the option in Display settings/Limit table width.Then a new option appears
   in your Column Settings, to set a Custom Width.
 * ![](https://i0.wp.com/ticksy_attachments.s3.amazonaws.com/8130694961.png?ssl=
   1)
 * ![](https://i0.wp.com/ticksy_attachments.s3.amazonaws.com/7089182316.png?ssl=
   1)
 * 
   Please note: If you enable **Limit Table Width**, the **Scrollable** slider 
   will be hidden from view. The same logic applies in reverse fashion (if **Scrollable**
   is enabled, you won’t see **Limit Table Width**). Also, **Word Wrap** function
   appears, and can be enabled when **Limit Table Width **slider is enabled.Please
   check more about this on this [Documentation](https://wpdatatables.com/documentation/general/table-configuration-page-overview/).
 *  We hope that helps.
   Kind regards.

Viewing 1 replies (of 1 total)

The topic ‘Table Formatting’ is closed to new replies.

 * ![](https://ps.w.org/wpdatatables/assets/icon-128x128.gif?rev=3010404)
 * [wpDataTables - WordPress Data Table, Dynamic Tables & Table Charts Plugin](https://wordpress.org/plugins/wpdatatables/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdatatables/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdatatables/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdatatables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdatatables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdatatables/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/table-formatting-8/#post-17348928)
 * Status: resolved