Hello,
I tried this code online but I'm not able to center it on my own page. It stays on the left. How is it possibile to do it? And even how can I put it on the right? Thanks a million.
I tried this code online but I'm not able to center it on my own page. It stays on the left. How is it possibile to do it? And even how can I put it on the right? Thanks a million.
Code:
<div id="menu01o"> <ul> <li><a href="#">Link 1</a></li> <li><a href="#">Link 2</a></li> <li><a href="#">Link 3</a></li> <li><a href="#">Link 4</a></li> <li><a href="#">Link 5</a></li> </ul> </div>
Code:
#menu01o {
width: 100%;
font: 80% Arial, Helvetica, sans-serif;
}
#menu01o ul{
margin: 0;
padding-left: 0;
list-style: none;
}
#menu01o li{
font-size: 1.1em;
display: inline;
margin: 0;
padding: 0;
}
#menu01o a:link, #menu01o a:visited{
float: left;
background: #800000;
color: #fff;
margin: 0em;
padding: 0.3em 1.5em 0.3em 1.5em;
text-decoration: none;
border: 1px solid #000;
}
#menu01o a:hover, #menu01o a:focus, #menu01o a:active{
color: #000;
background: #FFFF00;
}
Comment