Title: Table border &#8220;0&#8221;
Last modified: February 12, 2024

---

# Table border “0”

 *  [srtajpg](https://wordpress.org/support/users/srtajpg/)
 * (@srtajpg)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/table-border-0/)
 * Hi again team, many thanks for all your support and great work.
 * Whenever I code a table in your theme, no matter if I place the CSS in the theme
   options or inside the current table HTML, the border “0” is ignored and replaced
   by a thin border (colour #E1E1E1).
 * Do you know how to make the table borders invisible.
 * Many thanks in advance.

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

 *  [Steven (LyraThemes)](https://wordpress.org/support/users/stevenlyrathemes/)
 * (@stevenlyrathemes)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/table-border-0/#post-17420741)
 * Hi [@srtajpg](https://wordpress.org/support/users/srtajpg/), thanks for getting
   in touch!
 * Are you wanting to do this for tables sitewide? If so, you can add this bit of
   CSS in Appearance > Customize > Additional CSS and it should do the trick:
 *     ```wp-block-code
       .entry table, .entry th, .entry td { border: none; }
       ```
   
 * If this isn’t quite what you were looking for just let us know! 🙂
 *  Thread Starter [srtajpg](https://wordpress.org/support/users/srtajpg/)
 * (@srtajpg)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/table-border-0/#post-17426892)
 * Thanks Steven, If it is possible, I would rather do that for tables independently,
   as some of them are nice to have borders…
 *  [Steven (LyraThemes)](https://wordpress.org/support/users/stevenlyrathemes/)
 * (@stevenlyrathemes)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/table-border-0/#post-17430709)
 * Sure thing, that makes good sense! Could I ask how you’re adding your tables?
   If you’re using the block editor, there’s a field where you can add a CSS class
   to any tables you want to remove the border from, and then add a snippet in the
   Customizer, something like this:
 *     ```wp-block-code
       .no-border table, .no-border th, .no-border td { border: none; }
       ```
   
 * Or if you just prefer to add a snippet of CSS for each instance, you could use
   the page/post ID like this:
 *     ```wp-block-code
       .postid-12345 .entry table, .postid-12345 .entry th, .postid-12345 .entry td { border: none; }
       ```
   
 * If neither of these options do the trick, just let us know!
 *  Thread Starter [srtajpg](https://wordpress.org/support/users/srtajpg/)
 * (@srtajpg)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/table-border-0/#post-17430967)
 * Hi again Steven, I use the HTML editor for tables, but it does not seem to get
   any alternatives like:
 *     ```wp-block-code
       <table border="0">
       ```
   
 * Thanks.
 *  [Steven (LyraThemes)](https://wordpress.org/support/users/stevenlyrathemes/)
 * (@stevenlyrathemes)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/table-border-0/#post-17432730)
 * Thanks! That makes sense, in that case you could add the “no-border” CSS above,
   and then add that class to any table you wanted to remove the border from:
 *     ```wp-block-code
       <table border="0" class="no-border">
       ```
   
 * Let me know if you give this a shot and it still needs some tweaking! 🙂
 *  Thread Starter [srtajpg](https://wordpress.org/support/users/srtajpg/)
 * (@srtajpg)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/table-border-0/#post-17433942)
 * Thanks Steven, I used the following CSS in appearance (_.no-border table, .no-
   border th, .no-border td { border: none; }_) and HTML (_<table class=”no-border”
   border=”0″>_), however, it only removes the interior cells border, not the external
   table ones. You can see it [in here](https://www.masvalebuenoporconocer.com/cursos/).
 * Regards.
 *  [Steven (LyraThemes)](https://wordpress.org/support/users/stevenlyrathemes/)
 * (@stevenlyrathemes)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/table-border-0/#post-17433962)
 * Ah…thanks so much for the link- that helps a lot! It looks like for this to work,
   the CSS I gave you needs a correction- this should work instead:
 *     ```wp-block-code
       table.no-border, .no-border th, .no-border td { border: none; }
       ```
   
 *  Thread Starter [srtajpg](https://wordpress.org/support/users/srtajpg/)
 * (@srtajpg)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/table-border-0/#post-17434480)
 * Worked beautifully, many thanks!
 *  [Steven (LyraThemes)](https://wordpress.org/support/users/stevenlyrathemes/)
 * (@stevenlyrathemes)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/table-border-0/#post-17436373)
 * Great to hear that, thanks for letting us know! 🙂

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

The topic ‘Table border “0”’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/kale/2.8.2/screenshot.jpg)
 * Kale
 * [Support Threads](https://wordpress.org/support/theme/kale/)
 * [Active Topics](https://wordpress.org/support/theme/kale/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/kale/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/kale/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Steven (LyraThemes)](https://wordpress.org/support/users/stevenlyrathemes/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/table-border-0/#post-17436373)
 * Status: not resolved