Jump to content

Vertical Menu


Jammy_Stuff

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...