Tr border not on the right side 100% heigh
Why is the border in the middle (between the tr's) not 100% high? How can I change it? Here's a demo:
.one_tutorial{
display: block;
border-collapse: collapse;
border: 4px solid rgb(25, 25, 25);
}
.one_tutorial_title{
display: inline-block;
padding: 5px 20px;
width: 300px;
border-right: 4px solid rgb(25, 25, 25);
}
.one_tutorial_info{
display: inline-block;
padding: 5px 20px;
width: 200px;
}
<table>
<tr class="one_tutorial">
<td class="one_tutorial_title">Wie bewΓ€ssere ich meine Pflanzen</td>
<td class="one_tutorial_info">Geschrieben von ???, am 17.05.2015 um 14:07 Uhr</td>
</tr>
</table>
+3
source to share
2 answers
The reason was 5px top / bottom padding; here is your solution:
CSS
.one_tutorial_title{
display: inline-block;
padding: 10px 20px;/*Changed to 10px from 5px*/
width: 300px;
border-right: 4px solid rgb(25, 25, 25);
}
.one_tutorial_info{
display: inline-block;
padding: 0px 20px;/*Changed to 0px from 5px*/
width: 200px;
}
+2
source to share