Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wide navigation bar causes problems

 
Barry Gold
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writing a webpage that allows the user to navigate among categories and sub-categories of information. It consists of the following items:

1. Left side navigation (a tree-like view of the categories)
3. Top nav bar, which starts to the right of the left nav, consisting of set of top-level categories that act as drop-downs when you hover over them, allowing you to select categories within each top-level category, and sub-categories within those, etc.

This done with a series of nested <ul> and <li> elements, styled with CSS to behave the way I want. The only problem is that if the browser is narrower than the width of the left + top nav bars, the top bar moves down to the bottom of the window (below the left nav), with the actual content pushed down even further.

This problem occurs only in Internet Explorer. In Firefox, the top nav just extends off the right edge of the window, which I consider more appropriate.

Any ideas for how to fix this?

Here is a sample of the HTML code:


And here is the applicable CSS:


[ April 07, 2006: Message edited by: Barry Gold ]
 
Linda Walters
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Barry,

Have you tried using absolute positioning for your <div> tags?
That would leave them where you put them.
Another alternative is to use frames or even iframes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic