Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

placing menu bar - changes position when page changes

Status
Not open for further replies.

webslinga

Programmer
Jun 20, 2006
55
US
hi all,
I have a menu bar on the left hand side of my page. This menu bar must remain there for all pages in the website. The problem is that for large pages the menu(which is a simple unordered list) moves around to different positions depending on the page that I am on. Also this menu is inside a table so I do use the help of tables to help me position the menu. This is my css for the leftMenuBar.

Code:
#leftMenuBar {
 float: top;
 width: 10%;
 background:#fff;
 margin-top: 0.25em;
 margin-right: 0.0em;
 padding-top: 0;
 padding-bottom: 20px;
}

Any feedback is much appreciated. Thanks.
 
How can I give feedback to such scarce information? Well, float top does not exist and will be ignored by browsers. The width of the menu is pretty small, 10% of its container is usually less room than I would need to put a whole menu in. Menu has white backgroud, has a bit of gap (not same background) on top and some gap (in the same white background) at the bottom. Why is it all over the place? CSS does not tell me that.

Where is this menu positioned in the html code? How is the container element defined?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top