Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 512573

Border Theme (Single line between the rows)

$
0
0

Replies: 1

Hello everybody!

I have a quick question, which will probably be easy to solve for you out there.

I want to add a table to a page and want it the be divided only horizontally by a thin line. I went to http://www.tablesgenerator.com/html_tables where you are able to change the border theme. Everything looks fine on that page but if I want to transfer the code:

esult (click “Generate” to refresh)
Copy to clipboard

<style type=”text/css”>
.tg {border-collapse:collapse;border-spacing:0;}
.tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:0px;overflow:hidden;word-break:normal;border-top-width:1px;border-bottom-width:1px;}
.tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:0px;overflow:hidden;word-break:normal;border-top-width:1px;border-bottom-width:1px;}
.tg .tg-r535{background-color:#ff0000}
.tg .tg-zq60{background-color:#ff0000;vertical-align:top}
.tg .tg-yw4l{vertical-align:top}
</style>
<table class=”tg” style=”undefined;table-layout: fixed; width: 943px”>
<colgroup>
<col style=”width: 41px”>
<col style=”width: 578px”>
<col style=”width: 324px”>
</colgroup>
<tr>
<th class=”tg-r535″></th>
<th class=”tg-r535″></th>
<th class=”tg-zq60″></th>
</tr>
<tr>
<td class=”tg-031e”></td>
<td class=”tg-031e”></td>
<td class=”tg-yw4l”></td>
</tr>
</table>

it wont show the border, nor the red colour i want in the first row.

I am absolutely desperate right now, so I hope you guys can help


Viewing all articles
Browse latest Browse all 512573

Trending Articles