# Annoying white space between table cells

**URL:** <https://forum.kirupa.com/t/annoying-white-space-between-table-cells/64065>\
**Category:** web dev\
**Created:** [September 13, 2004, 1:22am UTC](https://forum.kirupa.com/t/annoying-white-space-between-table-cells/64065 "2004-09-13T01:22:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kristopher](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kristopher/32/501_2.png) [@Kristopher](https://forum.kirupa.com/u/Kristopher)\
**Post date:** [September 13, 2004, 1:22am UTC](https://forum.kirupa.com/t/annoying-white-space-between-table-cells/64065/1 "2004-09-13T01:22:00Z")

</div>

I have the cell padding and cell spacing set to 0, there is no margin or padding. And i still have this fine white line between all my table cells as if I have a border.

Here’s the link: [www.krisgosser.com/gruber/site2/contact.htm](http://www.krisgosser.com/gruber/site2/contact.htm)

Anyone know whats up?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 13, 2004, 1:27am UTC](https://forum.kirupa.com/t/annoying-white-space-between-table-cells/64065/2 "2004-09-13T01:27:32Z")

</div>

Oh yeah, and the table cell heights won’t do what I want them to. For example, the bars above the body cell with all the info won’t shrink to 5 pixels. Is that because the widths are in percentage?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 13, 2004, 2:04am UTC](https://forum.kirupa.com/t/annoying-white-space-between-table-cells/64065/3 "2004-09-13T02:04:53Z")

</div>

try border=0

```auto

<table width="100%" border="0" cellspacing="0" cellpadding="0">

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 13, 2004, 2:06am UTC](https://forum.kirupa.com/t/annoying-white-space-between-table-cells/64065/4 "2004-09-13T02:06:21Z")

</div>

You need to set the cell spacing and cell padding values in the table to 0. To shrink the cells down to 5 pixels you will need to put “spacer” images in there. The spacer is a blank 1px \* 1px transparent gif.

```php

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="spacer.gif" width="1" height="1"></td>
    <td><img src="spacer.gif" width="1" height="1"></td>
  </tr>
</table>

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 13, 2004, 2:23am UTC](https://forum.kirupa.com/t/annoying-white-space-between-table-cells/64065/5 "2004-09-13T02:23:14Z")

</div>

k it all works now. thanks alot!
