I created a header for my website using three li
's, but I need the menu to be wider for a better look. Here is my current code:
header {
position: absolute;
top: 0;
left: 0;
right: 0;
text-align: center;
z-index: 10;
animation-name: dropHeader;
animation-iteration-count: 1;
animation-timing-function: ease;
animation-duration: 0.75s
}
header ul {
display: inline-block;
background: #fff;
text-align: center;
padding: 10px;
margin: 0;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px
}
<header>
<div id="mobile-menu-close">
<span>Close</span> <i class="fa fa-times" aria-hidden="true"></i>
</div>
<!-- Not sure if to menu or not -->
<ul id="menu" class="shadow">
<li>
<a href="#about">About</a>
</li>
<li>
<a href="#projects">Projects</a>
</li>
<li>
<a href="#contact">Contact</a>
</li>
</ul>
</header>
I am struggling to make the menu reach the edges of the webpage without causing issues on different screen resolutions.