I have configured a ul element to serve as my navigation bar using HTML and CSS:
HTML:
<ul id="list-nav">
<li><a href="index.html"><img src="http://s20.postimg.org/w5uddizg9/small.png"></a></li>
<li><a href="Marsrutas.html">Maršrutas</a></li>
<li><a href="Nuotraukos.html">Nuotaukos</a></li>
<li><a href="Apie zygi.html">Apie žygį</a></li>
<li><a href="Apie mane.html">Apie mane</a></li>
<li><a href="Dviraciai.html">Dviračiai</a></li>
<li><a href="Kontaktai.html">Kontaktai</a></li>
CSS:
ul#list-nav {
margin:auto;
padding:0;
list-style:none;
width:525px;
}
ul#list-nav li {
display:inline;
text-align: center;
}
ul#list-nav li a {
text-decoration:none;
padding:5px 0;
width:auto;
color:#eee;
float:left;
margin:5px;
}
ul#list-nav li a {
text-align:center;
border: 1px solid transparent;
}
ul#list-nav li a:hover {
border-width: 1px;
border-style: solid;
border-color: #FFFFFF;
-moz-border-radius: 5px;
border-radius: 5px;
}
The issue I am facing is that all li elements appear aligned at the top of the page. Is there a way to align them along one axis instead?
(Please forgive any language errors, English is not my first language)