Jammy_Stuff Posted April 10, 2007 Share Posted April 10, 2007 I'm trying to make a menu that goes on the right of my website. Here is the stylesheet that I'm using and this is is an example page. As you can see, the menu gets pushed down as content is added to the page.Can anyone help me? (Just incase it changes anything, a logo image will be on the final site, at the top, using the #logo class. The menu will need to go below this.) Link to comment Share on other sites More sharing options...
Jammy_Stuff Posted April 10, 2007 Author Share Posted April 10, 2007 Sorry. I just managed to work it out myself by also adding a #main in addition to the #menu within #outer and setting widths for them both. It does seem alot of code though. Any better way? Link to comment Share on other sites More sharing options...
vchris Posted April 11, 2007 Share Posted April 11, 2007 I use a div for the menu and for vertical menus like this I use unordered lists.HTML:<div id="menu"><ul><li>list item 1</li><li>list item 2</li><li>list item 3</li></ul></div>CSS:#menu {float:right;width:200px;}#menu ul {margin: 0;padding: 0;}#menu ul li {list-style-type: none; /* remove bullets */} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now