텍스트를 세로 및 가로 가운데에 배치해야합니다. 원 배경과 링크를 만들고 있는데, 응답 성이 필요하며 링크 높이에 선 높이를 설정할 수 없습니다. 이유는 다음과 같습니다응답 배경의 절대 중심 텍스트
HTML 나는
line-height: 0;
그것은 작동하지 않습니다 시도
a.Previous, a.Next {
float: left;
text-decoration: none;
color: #fff;
width: 8%;
height: 0;
padding-bottom: 8%;
margin: 0 2% 0;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
border-radius: 50%;
display: inline-block;
background: black;
text-align: center;
vertical-align: middle;
}
<a class="Previous" href="#"> < </a>
<a class="Next" href="#"> > </a>
CSS. 내 텍스트를 링크의 응답 성있는 배경 안쪽에 절대 중심으로 가져 오려면 어떻게해야합니까?
. - http://css-tricks.com/snippets/css/a-guide-to-flexbox/ – justinavery