Sub Level Navigation Pushing Remainder Off Page

Hi Experts:
I have a sub-level navigation menu that appears when I hover over the main (horizontal) navigation bar.  However, when I hover over the item, is "pushes" the rest of the main navigation off the page.  I've attached a couple of screen shots to show you what I mean. My question is - how do I have the submenu appear during hover while leaving the rest of the main navigation bar where it is?

This is the CSS I'm using:
ul.sub-level2 {
    display: none;
}

li:hover .sub-level2 {
    background:#06C;
    border: #fff solid;
    border-width: 1px;
    display: block;
	position:relative;
    left: 75px;
    top: 5px;
}

ul.sub-level2 li {
    border: none;
    width:150px;
}

Open in new window

Here is how I use it in my code:

<li><a href="/schedules2/viewMonthlySchedule.php">Schedule</a>
            <ul class="sub-level2">
            	<li><a href="/schedules2/viewMonthlySchedule.php">Sales Schedule</a></li>
                <li><a href="/schedules2/viewMonthlySchedule.php">Re-Roof Schedule</a></li>
                <li><a href="/schedules2/viewMonthlySchedule.php">Repair Schedule</a></li>
             </ul>
            </li>

Open in new window

Screen-Shot-2013-09-05-at-7.27.3.png
Screen-Shot-2013-09-05-at-7.28.5.png
Bill SullivanCEOAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RobOwner (Aidellio)Commented:
A couple of ways to do this:

Have you considered using jQuery UI tabs such as http://jsbin.com/AJeJIq/1/edit.

This allows doesn't affect the top level items but will go off the page to the right: http://jsbin.com/ixUVukI/1/edit
0
COBOLdinosaurCommented:
The problem is that the submenu needs to be absolutely positioned and have a z-index so it displays in a layer above the rest of the page content.

The basic formats for submenus and some optional ideas might help you along.

Cd&
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.