ここで、画像のタイトル「DRF が白線をはるかに上回っている間に、白線を越えたアカウントと保有開示...
css を使用して行のすぐ上にテキストを配置するにはどうすればよいですか。
HTMLコードは
<div class="tabs">
<img src="images/disclosure.png" />
Accounts and Holdings Disclosure</div>
<div class="tabs">
<img src="images/drf.png" />
DRF</div>
CSSは
.tabs
{
height: 85px;
border-bottom: 1px solid #fff;
text-align: center;
color: #fff;
padding-bottom:7px;
}
.tabs img
{
display: block;
margin-left: auto;
margin-right: auto;
height: 70px;
margin-top: 5px;
}