파란색 상자에 텍스트를 세로로 가운데 맞춤시키는 가장 좋은 방법은 무엇입니까?텍스트를 CSS와 세로로 정렬하십시오.
태그 :
<div class="btn-blue">
<span class="icon"></span>
Some awesome text here
</div>
및 스타일 :
여기.btn-blue {
background-color: #446598;
color: #fff;
display: inline-block;
padding: 0 20px 0 0;
line-height: 0;
}
.btn-blue .icon {
width: 50px;
height: 50px;
display: inline-block;
background-color: #00356b;
margin-right: 10px;
}
는 바이올린 http://jsfiddle.net/fSa6r/
덕분이다.
이 요청 된 너무 많은 시간을 ... – Doorknob