Title: Fix Styling on Tables, Pre&gt;Code
Last modified: August 21, 2016

---

# Fix Styling on Tables, Pre>Code

 *  [nserror](https://wordpress.org/support/users/nserror/)
 * (@nserror)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/fix-styling-on-tables-precode/)
 * Add the following custom CSS to make tables and preformatted code look less terrible:
 *     ```
       pre {
       	background-color: lightsteelblue;
       }
   
       pre > code {
       	background: none;
       }
   
       table {
       	background: none;
       }
   
       table thead tr th,
       table thead tr td,
       table tbody tr th,
       table tbody tr td {
       	color: white;
       }
   
       table thead,
       table tbody tr,
       table thead tr {
       	background: none !important;
       }
       ```
   

The topic ‘Fix Styling on Tables, Pre>Code’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/tdgalactica/1.0.5/screenshot.png)
 * tdGalactica
 * [Support Threads](https://wordpress.org/support/theme/tdgalactica/)
 * [Active Topics](https://wordpress.org/support/theme/tdgalactica/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/tdgalactica/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/tdgalactica/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [nserror](https://wordpress.org/support/users/nserror/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/fix-styling-on-tables-precode/)
 * Status: not resolved