My code is below, I would like to add horizontal lines within the table to separate each row's content:
.Favourites-table {
position: relative;
width: 70%;
text-align: center;
/*border: 1px solid orangered;*/
margin: 0 auto;
top: 130px;
height: 300px;
}
.Favourites-table th {
position: relative;
border: 1px solid orangered;
color: #fd886b;
width: 100%;
height: 300px;
}
.horizontal-line {
position: relative;
width: 100%;
background-color: orangered;
padding: 1px 0px;
}
.Favourites-table tr {
position: relative;
border: 1px solid orangered;
width: 100%;
height: 100px;
}
<table class="Favourites-table">
<tr class="Favourites-titlerow">
<th>Search name</th>
<th>Email notifications</th>
<th>options</th>
</tr>
<tr class="Favourites-row">
<td>
<image src="../1x/"></image>
<h4>wetpoo</h4>
</td>
<td><span id="emailnotify-on" style="display: none;"><a href="#">On</a></span> <span class="hide-off" id="emailnotify-off" style="display: inline;"><a href="#">Off</a></span></td>
<td> <a class="delete-row" href="#">Delete <a class="edit-search" href="#">Edit search</a></td>
</tr>
<tr class="Favourites-row">
<td></td>
<td></td>
<td></td>
</tr>
</table>
I tried styling the TH and TR to add the line in, and I also tried to create a line using <hr>
and add it in the table but I can't get any of it to work.
but i cant get it right