I am currently working on a TV show page for my web design class and have incorporated tabs into the top menu of the webpage following a tutorial. However, I am struggling to center the tabs properly even after trying to use the center tag.
body {
font: 0.8em arial, helvetica, sans-serif;
}
#header ul {
list-style: none;
padding: 0;
margin: 0;
}
#header li {
float: right;
border: 1px solid #bbb;
border-bottom-width: 0;
margin: 0;
padding: 0;
}
#header a {
text-decoration: none;
display: block;
background: #eee;
padding: 0.24em 1em;
color: #00c;
width: 8em;
text-align: center;
}
#header a:hover {
background: #ddf;
}
#header #selected {
border-color: black;
}
#header #selected a {
position: relative;
top: 1px;
background: white;
color: black;
font-weight: bold;
}
#content {
border: 1px solid black;
clear: both;
padding: 0 1em;
}
h1 {
margin: 0;
padding: 0 0 1em 0;
}
<div id="header">
<center>
<ul>
<li style="font-family: DFKai-SB;"><a href="#">Home</a>
</li>
<li style="font-family: DFKai-SB;"><a href="#">Shows</a>
</li>
<li style="font-family: DFKai-SB;"><a href="#">Classic</a>
</li>
<li style="font-family: DFKai-SB;"><a href="#">More</a>
</li>
</ul>
</center>
</div>
<div id="content">
</div>