여기에 원하는 답변이 있습니다. 자세한 내용은 링크를 따르십시오
아래 예제 로고는 ul 클래스 외부에 있지만 다음 li 클래스 사이에 로고를 설정할 수도 있습니다. 그래서 메뉴의 중간에 로고.
HTML
<div id="header">
<a class="logo" href="index.html"><img src="http://i48.tinypic.com/2mob6nb.png" alt="Michigan State" /></a>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="index.html">Stats</a></li>
<li><a href="index.html">Schedule</a></li>
<li><a href="index.html">Store</a></li>
<li><a href="index.html">Gallery</a></li>
<li><a href="index.html">Roster</a></li>
</ul>
</div><!--end header-->
CSS
body {
font-family: Helvetica, Arial, Century;
font-size: 12px;
margin: 0;
background: url('images/bluebg.jpg') repeat-x top center;
}
#header {
background-color: #ffd727;
height: 40px;
position: relative;
margin: 150px auto 0;
}
#header ul {
margin: 0 auto;
width: 800px;
padding: 0;
list-style: none;
}
#header ul li {
float: left;
width: 97px;
}
#header ul li:nth-of-type(4) {
margin-left: 217px;
}
#header ul li a {
text-transform: uppercase;
text-decoration: none;
display: block;
text-align: center;
padding: 12px 0 0 0;
height: 28px;
}
#header ul li a:hover {
background: rgb(235,200,35);
}
.logo {
position: absolute;
left: 50%;
margin: -48px 0 0 -108px;
}
@media screen and (max-width: 800px) {
.logo {
bottom: 100%;
}
#header ul li:nth-of-type(4) {
margin-left: 0;
}
#header ul {
width: 600px;
position: relative;
}
}
JS는 경우 -이 링크
http://codepen.io/wolfcry911/pen/HyLdg
,369 아래 참조
방법 2도 좌우 다른 menu..but 방법 (1)와 함께 할 수
는 WP
http://foundation.zurb.com/forum/posts/1832-logo-centered-in-top-bar
에 가장 적합