縦位置
インライン、インラインブロック、インラインテーブル、および、テーブルのセル要素の縦位置を簡単に変えられます。
vertical-alignment ユーティリティで、要素の位置を変えます。vertical-align が、インライン、インラインブロック、インラインテーブル、および、テーブルのセル要素にのみ影響する点にご注意ください。
.align-baseline、.align-top、.align-middle、.align-bottom、.align-text-bottom、および .align-text-top の中から、必要に応じて選びます。
インライン要素では:
baseline
top
middle
bottom
text-top
text-bottom
<span class="align-baseline">baseline</span>
<span class="align-top">top</span>
<span class="align-middle">middle</span>
<span class="align-bottom">bottom</span>
<span class="align-text-top">text-top</span>
<span class="align-text-bottom">text-bottom</span>テーブルのセルでは:
| baseline | top | middle | bottom | text-top | text-bottom |
<table style="height: 100px;">
<tbody>
<tr>
<td class="align-baseline">baseline</td>
<td class="align-top">top</td>
<td class="align-middle">middle</td>
<td class="align-bottom">bottom</td>
<td class="align-text-top">text-top</td>
<td class="align-text-bottom">text-bottom</td>
</tr>
</tbody>
</table>