,하지만 내 CSS 코드 리 요소 내부 하이퍼 링크는 리튬의 상단 모서리에있는 하이퍼 링크를 배치합니다.센터 탐색 모음
CSS :
#navigation {
clear: both;
margin: 0 auto 5px;
margin-top: 0;
height: 6%;
padding: 0 5px;
position: relative;
z-index: 1;
}
#navigation a {
height: 10%;
width: 50px;
color: red;
vertical-align: center;
text-align: center;
text-decoration: bold;
}
li {
border-top: solid;
border-right: solid;
border-left: solid;
border-bottom: none;
padding-left: 1px;
height: 51px;
width: 18%;
background-image: url('../images/tab-selected.png');
background-repeat: repeat-x-y;
border-color: #F0F0F0;
display: inline-block;
padding-left: 1px;
}
HTML : 수직 중심 뭔가 여러 가지 방법이 있습니다
<nav id="navigation">
<ul>
<li ><a href="overview.asp">overview</a></li>
<li ><a href="overview.asp">overview</a></li>
</ul>
</nav>
게시하여 HTML 너무하시기 바랍니다. 그리고 텍스트를 가로, 세로, 또는 둘 다 가운데에 배치하고 싶습니까? – j08691
나는 내가 그것을 가로와 세로 모두 중심 원하는 HTML을 추가했다. 고맙습니다. –