"名前"という列の右側に境界線を作成しようとしています。私はそれが行 "名前"の上端の50%から行くことを望んで、それはコストの行の下にすべての方法を行くが、コスト行で、私はまたそれが50%それはテーブルの最下部には届かない。誰かが私にこれを達成する方法を教えてもらえますか?列のHTMLテーブルの部分的な境界
icon {
position: absolute;
left:-10rem;
top:-19rem;
}
table {
border-top: 5px solid black;
border-bottom: 5px solid black;
margin-bottom: 10rem;
width:70%;
border-collapse: collapse !important;
border-spacing: 0 !important;
}
th {
text-align:center!important;
background-color: green;
padding: 1rem !important
}
td {
text-align:center;
line-height:.8em !important;
background-color: gray
}
.services {
font-weight:bold;
text-align:left;
// border-right: 1px solid black !important;
}
.pricing{
font-weight:bold;
}
<img src="http://lorempixel.com/200/200/cats/" style="width:50px;height:50px" class="icon"/>
<table class="table borderless">
<thead>
<tr>
<th>Name</th>
<th>Plan A</th>
<th>Plan B</th>
<th>Plan C</th>
</tr>
</thead>
<tbody>
<tr>
<td class="services">Description 1</td>
<td class="included"></td>
<td class="included"></td>
<td class="included"></td>
</tr>
<tr>
<td class="services">Description 2</td>
<td>Not Included</td>
<td class="included"></td>
<td class="included"></td>
</tr>
<tr>
<td class="services">Description 3</td>
<td>Not Included</td>
<td class="included"></td>
<td class="included"></td>
</tr>
<tr>
<td class="services">Description 4</td>
<td>Not Included</td>
<td>Not Included</td>
<td class="included"></td>
</tr>
<tr>
<td class="services">Description 5</td>
<td>Not Included</td>
<td>Not Included</td>
<td class="included"></td>
</tr>
<tr>
<td class="services">Description 6</td>
<td>Not Included</td>
<td>Not Included</td>
<td class="included"></td>
</tr>
<tr>
<td class="services">Description 7</td>
<td>Limited</td>
<td>Hight Quality</td>
<td>Customized</td>
</tr>
<tr>
<td class="services">Description 8</td>
<td>Limited</td>
<td>Hight Quality</td>
<td>Customized</td>
</tr>
<tr>
<td class="services">Description 9</td>
<td>Limited</td>
<td>Hight Quality</td>
<td>Customized</td>
</tr>
<tr class="pricing">
<td style="padding-bottom: 2rem !important;" class="table-services">Cost</td>
<td>Price A</td>
<td>Price B</td>
<td>Price C</td>
</tr>
</tbody>
</table>
は、あなたはそれが最終的に見えるようにしたいもののスクリーンショットを投稿できますか? –
.cssファイルのコードとは何ですか?それはhtmlファイルに含まれていますか? – janek1
ちょうどCSSと、私がやろうとしているもののスクリーンショットで編集 –