Title: Unwanted Table Padding
Last modified: August 20, 2016

---

# Unwanted Table Padding

 *  [hjonson](https://wordpress.org/support/users/hjonson/)
 * (@hjonson)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/unwanted-table-padding/)
 * My tables have undesired padding (text to border distance) even tho’ I’ve set“
   padding: 0px; margin:0px, ….”.
    Desired look is [http://www.w3schools.com/css/tryit.asp?filename=trycss_table_border-collapse](http://www.w3schools.com/css/tryit.asp?filename=trycss_table_border-collapse).
   Note the tight border. A local file with w3 example looks perfect in IE8, but
   not on my WP page [http://www.partletonsports.com/?page_id=572](http://www.partletonsports.com/?page_id=572)
   What am I doing wrong?

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

 *  [baszer](https://wordpress.org/support/users/baszer/)
 * (@baszer)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/unwanted-table-padding/#post-2120346)
 * Hi,
 * delete/change the padding in:
 *     ```
       #content TR TD
       {
       	border-top: 1px solid #E7E7E7;
       	padding: 6px 24px;
       }
       ```
   
 * and align the first colom to the left
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/unwanted-table-padding/#post-2120349)
 * Try adding `padding:0;` to each `td`.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/unwanted-table-padding/#post-2120354)
 * > delete/change the padding in
 * **Don’t** edit the Twenty Ten theme. Your changes **will** be over-written the
   next time you upgrade WordPress. For this reason, it is recommended that you 
   consider creating a [child theme](http://codex.wordpress.org/Child_Themes) for
   your customisations. Once your child theme is active, we should be able to help
   with the customisation.
 *  Thread Starter [hjonson](https://wordpress.org/support/users/hjonson/)
 * (@hjonson)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/unwanted-table-padding/#post-2120369)
 * Wow, thanks for the quick response!
    Yea, modifying TwentyTen didn’t appeal to
   me (altho’ I already elinated RSS from Meta). Adding “padding:0;” to each TD 
   works! Thanks. But I already had <style> td {padding:0px;} -why didn’t that work?“:
   0” vs “:0px” maybe? Source is same as [http://www.w3schools.com/css/tryit.asp?filename=trycss_table_border-collapse](http://www.w3schools.com/css/tryit.asp?filename=trycss_table_border-collapse)
 *  Thread Starter [hjonson](https://wordpress.org/support/users/hjonson/)
 * (@hjonson)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/unwanted-table-padding/#post-2120372)
 * Reading “child-theme” page now – thanks again!

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

The topic ‘Unwanted Table Padding’ is closed to new replies.

 * 5 replies
 * 3 participants
 * Last reply from: [hjonson](https://wordpress.org/support/users/hjonson/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/unwanted-table-padding/#post-2120372)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
