align list items horizontally with css code example
Example 1: html list items horizontally
for example:
(html)
<ul class="navbar-items">
<li> <a href="#start">Start</a> </li>
<li> <a href="#profile">Profile</a> </li>
<li> <a href="#projects">Projects</a> </li>
<li> <a href="#info">Info</a> </li>
</ul>
(css)
ul.navbar-items li
{
display:inline;
}
ul.navbar-items
{
min-width: 696px;
padding-top: 20px;
}
Example 2: have unordered list horizontal css
#div_top_hypers {
background-color:#eeeeee;
display:inline;
}
#ul_top_hypers li{
display: inline;
}