정렬되지 않은 목록을 사용하여 탐색 모음을 만듭니다. 내 목록 요소 (element1, element2)가 그 외부에 만들어진 상자의 가운데에 쓰여지길 원합니다.센터 탐색 모음 요소를 나열 하시겠습니까?
----------- -------------
el1 whereas presently it is coming to the right like el1
----------- ------------
HTML :
<div id="central-section" class="central-section-base">
<div id="ddtopmenubar" class="mattblackmenu">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#" rel="ddsubmenu1">Element 1</a></li>
<li><a href="#" rel="ddsubmenu2">Element 2</a></li>
<li><a href="#" rel="ddsubmenu3">Element 3</a></li>
</ul>
</div>
CSS :
.mattblackmenu ul{
margin: 0;
padding: 0;
font: bold 12px Verdana;
list-style-type: none;
border-bottom: 1px solid gray;
background: #153E7E;
overflow: hidden;
width: 100%;
text-align: center;
}
.mattblackmenu li{
display: table;
margin:0px auto 0px auto;
text-align:center;
}
.mattblackmenu li a{
float: left;
display: block;
text-decoration: none;
margin: 0;
padding: 6px 8px; /*padding inside each tab*/
border-right: 1px solid white; /*right divider between tabs*/
color: white;
background: #153E7E;
}
나는 또한 사용하고 수평 탐색 플러그인 (http://sebnitu.github.io/HorizontalNav/).
자세한 설명이 필요합니다. 스크린 샷 넣기/바이올린 연주 – super