MrBelfry
IS-IT--Management
- May 21, 2003
- 289
Hey there Tek-Tippers
I'm designing a site with a horizontal menu bar along the top which I would like to align on the right of the page. The relevant css looks like this:
and HTML looks like this:
The only way I can get it to align on the left is to change the float property BUT then that makes my HTML counter intuitive because I've got to put my menu items back to front. I'm probably missing something really obvious so please help!
MrBelfry
I'm designing a site with a horizontal menu bar along the top which I would like to align on the right of the page. The relevant css looks like this:
Code:
#menu {
width: 100%;
text-align: right;
}
#menu ul {
list-style: none;
margin: 0;
}
#menu ul li {
float: left;
}
and HTML looks like this:
Code:
<div id="menu">
<ul><li>Contacts</li><li>Message Centre | </li></ul>
</div>
MrBelfry