Title: Remove Space Above Table
Last modified: August 21, 2016

---

# Remove Space Above Table

 *  Resolved [trinker](https://wordpress.org/support/users/trinker/)
 * (@trinker)
 * [13 years ago](https://wordpress.org/support/topic/remove-space-above-table/)
 * I have made a table on [this page here](http://gsewebwp.gse.buffalo.edu/org/clari/index.php/events/claris-50th-anniversary/clari-literacy-conference/conference-registration/).
 * It takes a while to load as there are server issues.
 * There’s an inch of space between the table and the header above it I want to 
   remove. I don’t see what’s causing this as there’s nothing in the code to create
   space that I see of so that tells me there’s some css parameter I want to change.
 * Here’s the code I’m using to create the page:
 *     ```
       If you plan to attend the Literacy Student & Alumni Reunion please register for this separately below.<hr>
   
       <table class="certain2" border="0">
       <th colspan="2"><strong>Literacy Conference Registration</strong></th>
       <tr>
       <td style="vertical-align:middle;"><form action="/index.php/events/claris-50th-anniversary/clari-literacy-conference/conference-registration/literacy-conference-registratio/"><input type="submit" value="Register Now!" /></form></td>
       <td style="vertical-align:middle;">Saturday, June 29th, 2013 - Literacy Conference, from 8:00 - 4:30 p.m.</span>
       Keynote speaker: Taffy Raphael (University of Illinois, Chicago)
       </td>
       </tr>
   
       <TR><TD></TD></TR>
       <TR><TD></TD></TR>
       <TR><TD></TD></TR>
       <TR><TD></TD></TR>
   
       <th colspan="2"><strong>2013 UB Literacy Student & Alumni Reunion Registration</strong></th>
       <tr>
       <td style="vertical-align:middle;"><form action="/index.php/events/claris-50th-anniversary/clari-literacy-conference/conference-registration/student-alumni-reunion/"><input type="submit" value="Register Now!" /></form></td>
       <td style="vertical-align:middle;">Friday, June 28th, 2013 - UB Literacy/Reading Reunion, from 5:30 - 7:00 p.m.</span>
       Socialize with old friends, network, find out what is happening at CLaRI</td>
       </tr>
       </table>
       ```
   
 * And I have modified the table using the following in the style.css
 *     ```
       /*changes table font size of the class certain*/
       table.certain2{
       	font-size:13px;
           margin: 0px;
           border-collapse: collapse;
           padding: 0px;
       }
       ```
   
 * I’m using the twenty twelve theme (with a child)
 * Thank you in advance.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/remove-space-above-table/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/remove-space-above-table/page/2/?output_format=md)

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years ago](https://wordpress.org/support/topic/remove-space-above-table/#post-3739676)
 * You have a bunch of extraneous HTML in there:
 *     ```
       <p>
       If you plan to attend the Literacy Student & Alumni Reunion please register for this separately below.
       <br>
       </p>
       <hr>
       <p></p>
       <br>
       <br>
       <br>
       <p></p>
       <table class="certain2" border="0">
       ```
   
 * Try using the TEXT editor to remove it.
 *  Thread Starter [trinker](https://wordpress.org/support/users/trinker/)
 * (@trinker)
 * [13 years ago](https://wordpress.org/support/topic/remove-space-above-table/#post-3739679)
 * WPyogi Thanks for your response. The code I copied above is from the text editor
   and the `<br>`s don’t show up there. That’s odd. Any suggestions?
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years ago](https://wordpress.org/support/topic/remove-space-above-table/#post-3739683)
 * The code I copied is above the table – did you look at that post/page in the 
   text editor?
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years ago](https://wordpress.org/support/topic/remove-space-above-table/#post-3739685)
 * Sorry, misread that – what’s all this:
 *     ```
       <TR><TD></TD></TR>
       <TR><TD></TD></TR>
       <TR><TD></TD></TR>
       <TR><TD></TD></TR>
       ```
   
 *  Thread Starter [trinker](https://wordpress.org/support/users/trinker/)
 * (@trinker)
 * [13 years ago](https://wordpress.org/support/topic/remove-space-above-table/#post-3739687)
 * That was my hacky way to insert extra rows in the table to give space in between
   2 rows. I didn’t think this would have an effect above the table since it was
   in between rows.
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years ago](https://wordpress.org/support/topic/remove-space-above-table/#post-3739696)
 * Isn’t that’s where all the extra space is?
 *  Thread Starter [trinker](https://wordpress.org/support/users/trinker/)
 * (@trinker)
 * [13 years ago](https://wordpress.org/support/topic/remove-space-above-table/#post-3739697)
 * [@wpyogi](https://wordpress.org/support/users/wpyogi/) When I go to the page 
   link and inspect elements I see the extra stuff you’re talking about, but in 
   the wordpress text editor itself the extra stuff isn’t there. What’s causing 
   the insertion of the extra `<br>`s above the table?
 *  Thread Starter [trinker](https://wordpress.org/support/users/trinker/)
 * (@trinker)
 * [13 years ago](https://wordpress.org/support/topic/remove-space-above-table/#post-3739700)
 * [@wpyogi](https://wordpress.org/support/users/wpyogi/) no the extra white space
   is above the table. The
 *     ```
       <TR><TD></TD></TR>
       <TR><TD></TD></TR>
       <TR><TD></TD></TR>
       <TR><TD></TD></TR>
       ```
   
 * business is in the middle of the table. I want the white space in between rows.
   it’s the white space above I want to get rid of.
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years ago](https://wordpress.org/support/topic/remove-space-above-table/#post-3739701)
 * EDIT – sorry, we’re cross-posting – let me look at it again, maybe we are not
   talking about the same thing :)!
 * Try removing this:
 *     ```
       <TR><TD></TD></TR>
       <TR><TD></TD></TR>
       <TR><TD></TD></TR>
       <TR><TD></TD></TR>
       ```
   
 *  Thread Starter [trinker](https://wordpress.org/support/users/trinker/)
 * (@trinker)
 * [13 years ago](https://wordpress.org/support/topic/remove-space-above-table/#post-3739708)
 * Sorry I was not clear. You are correct above that the when you inspect element
   of the page you see:
 *     ```
       <p>
       If you plan to attend the Literacy Student & Alumni Reunion please register for this separately below.
       <br>
       </p>
       <hr>
       <p></p>
       <br>
       <br>
       <br>
       <p></p>
       <table class="certain2" border="0">
       ```
   
 * However in the text editor I see:
 *     ```
       If you plan to attend the Literacy Student & Alumni Reunion please register for this separately below.<hr>
   
       <table class="certain2" border="0">
       .
       .
       .
       ```
   
 * You are right that those `<br>` tags don’t belong but I don’t know how to remove
   them since I can not see them in the text editor.
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years ago](https://wordpress.org/support/topic/remove-space-above-table/#post-3739709)
 * Where did you get the table code?
 * These errors show some errors related to extra p tags and those extra td tags–
   BTW, that’s not a good way to add spaces… so maybe try removing that and see 
   what happens.
 * [http://validator.w3.org/check?uri=http%3A%2F%2Fgsewebwp.gse.buffalo.edu%2Forg%2Fclari%2Findex.php%2Fevents%2Fclaris-50th-anniversary%2Fclari-literacy-conference%2Fconference-registration%2F&charset=%28detect+automatically%29&doctype=Inline&group=0](http://validator.w3.org/check?uri=http%3A%2F%2Fgsewebwp.gse.buffalo.edu%2Forg%2Fclari%2Findex.php%2Fevents%2Fclaris-50th-anniversary%2Fclari-literacy-conference%2Fconference-registration%2F&charset=%28detect+automatically%29&doctype=Inline&group=0)
 *  Thread Starter [trinker](https://wordpress.org/support/users/trinker/)
 * (@trinker)
 * [13 years ago](https://wordpress.org/support/topic/remove-space-above-table/#post-3739723)
 * [@wpyogi](https://wordpress.org/support/users/wpyogi/) That fixed the space above
   the table. Thank you now how to a get extra space in between rows?
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years ago](https://wordpress.org/support/topic/remove-space-above-table/#post-3739727)
 * YAY! Aside from more complicated CSS approaches, you CAN use an empty row like
   that, but try adding an empty space in the cell –
 *     ```
       <tr><td>&nbsp;</td></tr>
       ```
   
 * See if that works.
 *  Thread Starter [trinker](https://wordpress.org/support/users/trinker/)
 * (@trinker)
 * [13 years ago](https://wordpress.org/support/topic/remove-space-above-table/#post-3739730)
 * Hmm putting that in has the same effect as before in that now a bunch of space
   appear above the table. What’s the css approach?
 * I wonder if it has to do with the use of `<th>` tags.
 *  Thread Starter [trinker](https://wordpress.org/support/users/trinker/)
 * (@trinker)
 * [13 years ago](https://wordpress.org/support/topic/remove-space-above-table/#post-3739731)
 * I had the <th> tags outside of the <tr> tags and suspect that was the issue. 
   I updated and will let you know if that worked.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/remove-space-above-table/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/remove-space-above-table/page/2/?output_format=md)

The topic ‘Remove Space Above Table’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 16 replies
 * 2 participants
 * Last reply from: [trinker](https://wordpress.org/support/users/trinker/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/remove-space-above-table/page/2/#post-3739736)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
