Title: Adding extra table class
Last modified: August 20, 2016

---

# Adding extra table class

 *  Resolved [Fleiding](https://wordpress.org/support/users/fleiding/)
 * (@fleiding)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-extra-table-class/)
 * Hi there,
 * I am using the wonderful [Yoko-theme](http://wordpress.org/extend/themes/yoko)
   for my website and I am very happy with it.
 * The only thing what is bothering me are the table borders. I edited the CSS to
   show no borders in posts and pages. Works great, but now there is a situation
   which requires me to have a table **with** borders.
 * If i but the normal CSS back, all my tables will have borders, but I do not want
   that. Only a few tables should have borders.
 * I have tried copying this piece of code (for all the tables) and replaced the
   word content with my own word. Used <table class=”word”> to summon the custom
   table style.
 *     ```
       /* --- Post Tables --- */
       #content table {
       	margin:10px 0px 30px 0px;
       }
       #content table thead {
       	border-top:0px solid #ddd;
       }
       #content table tr {
       	border-bottom:0px solid #ddd;
       }
       #content table tr th {
       	padding: 10px 20px 10px 20px;
       	border-top:0px solid #ddd;
       	border-left:0px solid #ddd;
       	border-right:0px solid #ddd;
       }
       #content table tr td {
       	padding: 10px 20px 10px 20px;
       	border-left:0px solid #ddd;
       	border-right:0px solid #ddd;
       }
       ```
   

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-extra-table-class/#post-3329789)
 * Do you want only tables on a particular page to be styled?
 *  Thread Starter [Fleiding](https://wordpress.org/support/users/fleiding/)
 * (@fleiding)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-extra-table-class/#post-3329795)
 * A few pages.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-extra-table-class/#post-3329797)
 * Which table(s) do you want styled?
 *  Thread Starter [Fleiding](https://wordpress.org/support/users/fleiding/)
 * (@fleiding)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-extra-table-class/#post-3329800)
 * I am currently writing a few new articles in which I need the borders.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-extra-table-class/#post-3329802)
 * Are there tables in articles that you don’t need borders on?
 *  Thread Starter [Fleiding](https://wordpress.org/support/users/fleiding/)
 * (@fleiding)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-extra-table-class/#post-3329808)
 * Yes, but in all the articles I need borders there are no tables without borders.
 * So:
 * page1: no borders on all tables
    page2: no borders on all tables page3: borders
   on all tables
 *  Thread Starter [Fleiding](https://wordpress.org/support/users/fleiding/)
 * (@fleiding)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-extra-table-class/#post-3329937)
 * Resolved it with this plugin:
 * [http://wordpress.org/extend/plugins/tablepress/](http://wordpress.org/extend/plugins/tablepress/)

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

The topic ‘Adding extra table class’ is closed to new replies.

## Tags

 * [add](https://wordpress.org/support/topic-tag/add/)
 * [class](https://wordpress.org/support/topic-tag/class/)
 * [table](https://wordpress.org/support/topic-tag/table/)

 * 7 replies
 * 2 participants
 * Last reply from: [Fleiding](https://wordpress.org/support/users/fleiding/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/adding-extra-table-class/#post-3329937)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
