I'm just wondering how I would put a 3 pixel space between the different list items in the following html? Also, how do I properly vertically align the text within those lists?
CSS:
body {
background-color: #4a4a4a;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
}
li {
float: left;
}
a:link, a:visited {
display: inline-block;
vertical-align: middle;
width: 318px;
font-size: 12pt;
font-weight: bold;
font-family: helvetica, arial;
letter-spacing: 4px;
vertical-align: middle;
color: #4a4a4a;
background-color: #f99400;
text-align: center;
padding: 4px;
text-decoration: none;
text-transform: uppercase;
}
a:hover, a:active {
background-color: #fbc486;
}
HTML:
<ul>
<li><a href="#news">About</a></li>
<li><a href="#contact">Portfolio</a></li>
<li><a href="#about">Contact</a></li>
</ul>
So yeah, I just want to put a 3 pixel break of empty space (same as background colour) in between those 3 items to separate them in the navbar. And for some reason the vertical alignment of the text isn't working right.