묻고답하기
헤더 중앙 정렬
2018.11.15 14:31
<html 코드>
<nav class="menu">
<ul>
<li class="mainname"><a href="index.html">dAlimood</a></li>
<li><a href="int/index.html">About Me</a></li>
<li><a href="pf/index.html">Portfolio</a></li>
<li><a href="wp/index.html">Web Programming</a></li>
<li><a href="http://www.megastudy.net/" target="_blank">Studying</a></li>
<li><a href="https://music.youtube.com/" target="_blank">My Music</a></li>
</ul>
</nav>
<CSS 코드>
.menu{
position: fixed;
width: 100%;
}
.menu ul{
display: inline-block;
text-align: center;
width: 100%;
position: absolute;
left: auto;
right: auto;
bottom: auto;
top: auto;
float: left;
}
.menu li{
list-style: none;
display: table-cell;
}
<웹사이트 이미지 (URL: https://dalimood.github.io/Application-Programming )>
윗 부분 메뉴바를 중앙 정렬하고픈데 아무리 삽질하도 답이 나오질 않습니다 도와주실 분 계신가요?