2011-07-26 8 views
0

저는 CSS를 사용하여 다음과 같은 작업을하고 있습니다 :div 표시 줄의 중간에 위치 링크가 있습니다

페이지 상단에서 100pt의 div 막대가 있습니다. div 표시 줄은 약 100pt 두께입니다. 그런 다음 div 막대의 "중간"에서 메뉴 옵션을 갖고 싶습니다.

.top_header { 
    background-color:#3B5998; 
    height:70px; 
    margin-left:0px; 
    margin-right:0px; 
    top:60px; 
    position:relative 
} 

.top_header a, .top_header a:visited, .top_header a:hover, .top_header a:active, .top_header a:focus { 
    color:white; 
    font-size:x-large; 
    font-family:Arial 
} 
+0

세로 또는 가로로 가운데에 넣었습니까? –

답변

0

line-height를 추가하는 것입니다 할 .top_header a

1

`text-align:center;' 

이 .top_header에 추가 top_header합니다.