# Table with horizontal lines only

**URL:** <https://community.hubspot.com/t/table-with-horizontal-lines-only/37927>\
**Category:** CMS Development\
**Created:** [May 26, 2021, 9:34am UTC](https://community.hubspot.com/t/table-with-horizontal-lines-only/37927 "2021-05-26T09:34:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![NM\_AuerSignal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nm_auersignal/32/75439_2.png) [@NM\_AuerSignal](https://community.hubspot.com/u/NM_AuerSignal)\
**Post date:** [May 26, 2021, 9:34am UTC](https://community.hubspot.com/t/table-with-horizontal-lines-only/37927/1 "2021-05-26T09:34:56Z")

</div>

Hello,

could anybody help me to create a table (on my blog post) with horizontal lines only?

I’m not very familiar with CSS / HTML codes. Is there a way to edit the classic tables to a table with just horizontal lines (and no vertical lines)?

Thanks in advance,

Nadine

---

<div class="post-metadata">

**Author:** ![piersg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/piersg/32/99782_2.png) [@piersg](https://community.hubspot.com/u/piersg)\
**Post date:** [May 26, 2021, 10:47am UTC](https://community.hubspot.com/t/table-with-horizontal-lines-only/37927/2 "2021-05-26T10:47:19Z")

</div>

Do you have a page with a specific example you can link to? If you have an HTML table like so:

```lia-code-sample
<table>
 <tbody>
 <tr>
 <th>Company</th>
 <th>Contact</th>
 <th>Country</th>
 </tr>
 <tr>
 <td>Alfreds Futterkiste</td>
 <td>Maria Anders</td>
 <td>Germany</td>
 </tr>
 <tr>
 <td>Centro comercial Moctezuma</td>
 <td>Francisco Chang</td>
 <td>Mexico</td>
 </tr>
 <tr>
 <td>Ernst Handel</td>
 <td>Roland Mendel</td>
 <td>Austria</td>
 </tr>
 <tr>
 <td>Island Trading</td>
 <td>Helen Bennett</td>
 <td>UK</td>
 </tr>
 <tr>
 <td>Laughing Bacchus Winecellars</td>
 <td>Yoshi Tannamuri</td>
 <td>Canada</td>
 </tr>
 <tr>
 <td>Magazzini Alimentari Riuniti</td>
 <td>Giovanni Rovelli</td>
 <td>Italy</td>
 </tr>
 </tbody>
</table>

```

Your css would be

```lia-code-sample
table {
 border-collapse: collapse;
}
tr {
 border-top: 1px solid black;
 border-left: none;
 border-right: none;
 border-bottom: none;
}
/* if you want the first row to not have a top border */
tr:first-child {
 border: none;
}

```

Which would look like this

 ![piersg_0-1622026202622.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/6/a63a2f162f948f3833fbdc0824726246b63fe917.png)

---

<div class="post-metadata">

**Author:** ![NM\_AuerSignal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nm_auersignal/32/75439_2.png) [@NM\_AuerSignal](https://community.hubspot.com/u/NM_AuerSignal)\
**Post date:** [May 26, 2021, 10:52am UTC](https://community.hubspot.com/t/table-with-horizontal-lines-only/37927/3 "2021-05-26T10:52:58Z")

</div>

Hey,

thanks, I will have a look at it !  
Here is the page (not published yet): [https://blog.auersignal.com/de/-temporary-slug-b047bb2f-a1be-4d42-9be8-efb4647474c7?hs\_preview=ZigtanZD-47879904362](https://blog.auersignal.com/de/-temporary-slug-b047bb2f-a1be-4d42-9be8-efb4647474c7?hs_preview=ZigtanZD-47879904362)

Exactly, the tables should look like your table.

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![piersg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/piersg/32/99782_2.png) [@piersg](https://community.hubspot.com/u/piersg)\
**Post date:** [May 26, 2021, 12:05pm UTC](https://community.hubspot.com/t/table-with-horizontal-lines-only/37927/4 "2021-05-26T12:05:18Z")

</div>

Add this to your page’s Header HTML in the advanced settings

```lia-code-sample
<style>
 table {
 border-collapse: collapse;
 border: none;
 }
 tr {
 border-top: 1px solid black;
 }
 tr:first-child {
 border-top: none;
 }
 td {
 border: none !important;
 }
</style>

```

You should get this

 ![piersg_0-1622030697656.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/a/aada965f147b1aaa7a7cbfc1d00b97af354d7044.png)

---

<div class="post-metadata">

**Author:** ![NM\_AuerSignal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nm_auersignal/32/75439_2.png) [@NM\_AuerSignal](https://community.hubspot.com/u/NM_AuerSignal)\
**Post date:** [May 26, 2021, 1:03pm UTC](https://community.hubspot.com/t/table-with-horizontal-lines-only/37927/5 "2021-05-26T13:03:27Z")

</div>

Thank you! Its working 🙂
