1

How can I remove the white spacing between each column of my table header with css? I'd like the entire header to be one continuous background color.

HTML snippet:

<table class="asset-list">

  <thead>

    <tr>

      <th>Hostname</th>
      <th>IP Address</th>
      <th>Manufacturer</th>
      <th>Model</th>
      <th>Category</th>

    </tr>

  </thead>

Here's a link to the project site I'm working on:

http://104.236.173.175/assets/

user1052448
  • 423
  • 2
  • 6
  • 19
  • 1
    Add `border-collapse: collapse` to the `table` element.. also consider using a [CSS reset](http://cssreset.com/). – Josh Crozier Feb 05 '16 at 20:23

1 Answers1

1

A couple of methods to consider:

border-collapse: collapse

table {
    width:100%;
    margin:0;
    border:none;
}
PhpDude
  • 1,542
  • 2
  • 18
  • 33