Title: Define custom padding in tables
Last modified: August 22, 2016

---

# Define custom padding in tables

 *  Resolved [DukeArdelis](https://wordpress.org/support/users/dukeardelis/)
 * (@dukeardelis)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/define-custom-padding-in-tables/)
 * I have difficulty with tables, I cant remove the default padding, I need it to
   be 1 or 2 px, and no mater what code I put in the HTML code I don’t get any result.
   I also tried to make the tables smaller I reduced the height to 20px, but still
   they remained 49 px when empty, and up to 60px with a small icon inside (inspected
   with firefox “Inspect element”.
 * I need to place text in one table and an icon to its neighbor on the right size
   16×16 px.
 * I have tried a dozen code variations, but nothing works.
 * [https://wordpress.org/plugins/wp-edit/](https://wordpress.org/plugins/wp-edit/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/define-custom-padding-in-tables/#post-5932091)
 * Hello,
 * Tables are tricky with html coding. This is because:
    1) WP themes almost ALWAYS
   add css for tables. 2) The tinymce editor also adds css for tables. 3) When modifying
   the table attributes; additional css is added inline.
 * So, when the final table is output… all three of these css rules are evaluated
   and applied.
 * Most likely, the styling is coming from your theme. You can look at how your 
   theme styles tables to get a better idea.
 * Do you mind sharing a link to a test table you’ve created, that illustrates the
   issue?

Viewing 1 replies (of 1 total)

The topic ‘Define custom padding in tables’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-edit_ffffff.svg)
 * [WP Edit](https://wordpress.org/plugins/wp-edit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-edit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-edit/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-edit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-edit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-edit/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Josh](https://wordpress.org/support/users/josh401/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/define-custom-padding-in-tables/#post-5932091)
 * Status: resolved