Title: Bug in: Data Table: Header vs Content padding
Last modified: August 1, 2020

---

# Bug in: Data Table: Header vs Content padding

 *  Resolved [ankitnagpal](https://wordpress.org/support/users/ankitnagpal/)
 * (@ankitnagpal)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/bug-in-data-table-header-vs-content-padding/)
 * See image: [https://i.imgur.com/kDICZnq.png](https://i.imgur.com/kDICZnq.png)
 * When I use your Data Table element (not the EA Advanced Data Table), and I set
   cell content as “Editor” and not “TextArea”, and set padding to 0 in all Header
   and Content, Your table sets 0 padding to Header perfectly fine, but in content
   it leaves a space even when all the paddings are 0 (especially bottom padding:
   0), because the header is wrapped in <span> tag, but the “Editor” is wrapped 
   in <p> tag. This <p> tag keeps a space at the bottom even when the bottom padding
   is set to 0.
 * See image: [https://i.imgur.com/kDICZnq.png](https://i.imgur.com/kDICZnq.png)

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

 *  Plugin Support [Abid Hasan](https://wordpress.org/support/users/abidhasan112/)
 * (@abidhasan112)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/bug-in-data-table-header-vs-content-padding/#post-13199696)
 * Hi [@ankitnagpal](https://wordpress.org/support/users/ankitnagpal/) ,
 * When you write content in your cell by choosing **Editor**(Which is WordPress
   Default Editor) , It adds <p> tag. This is because WordPress default editor add
   <p> tag when you write anything is that editor.
 * And this <p> tag margin is already set to in your theme. When I reproduced your
   query, I also found the same case. Have a look, This <p> tag margin-bottom CSS
   comes from theme CSS: [https://d.pr/i/bGSA2Y](https://d.pr/i/bGSA2Y)
 * So if you want to solve this, You can use this CSS on your stylesheet:
 *     ```
       .eael-data-table .td-content p {
           margin-bottom: 0px !important;
       }
       ```
   
 * NOTE: I recommend you to add unique class name to your widget and add CSS in 
   that class name for better practice.
 * Let me know how it goes. Cheers!
 *  Thread Starter [ankitnagpal](https://wordpress.org/support/users/ankitnagpal/)
 * (@ankitnagpal)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/bug-in-data-table-header-vs-content-padding/#post-13199702)
 * But the issue is that same thing doesn’t happen in the header. When same editor
   and 0 padding is used. It happens only in content area.
 *  Plugin Support [Abid Hasan](https://wordpress.org/support/users/abidhasan112/)
 * (@abidhasan112)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/bug-in-data-table-header-vs-content-padding/#post-13202472)
 * Hi [@ankitnagpal](https://wordpress.org/support/users/ankitnagpal/) ,
 * In the Header, There is no option for the WordPress Default Editor: [https://d.pr/i/HbFnXt](https://d.pr/i/HbFnXt)
   
   That editor(WordPress Default Editor) option available only the content area 
   only: [https://d.pr/i/KcNFGg](https://d.pr/i/KcNFGg)
 * So if you want to prevent that <p> tag margin that comes from theme CSS, You 
   can use the above CSS.
 * Hope you understand.

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

The topic ‘Bug in: Data Table: Header vs Content padding’ is closed to new replies.

 * ![](https://ps.w.org/essential-addons-for-elementor-lite/assets/icon-256x256.
   gif?rev=3182943)
 * [Essential Addons for Elementor - Popular Elementor Templates & Widgets](https://wordpress.org/plugins/essential-addons-for-elementor-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/essential-addons-for-elementor-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/essential-addons-for-elementor-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/essential-addons-for-elementor-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/essential-addons-for-elementor-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/essential-addons-for-elementor-lite/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Abid Hasan](https://wordpress.org/support/users/abidhasan112/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/bug-in-data-table-header-vs-content-padding/#post-13202472)
 * Status: resolved