Solved

"drop up" footer menu

Posted on 2014-02-23
5
1,373 Views
Last Modified: 2014-02-24
I am desperately trying to get this menu to pop up from the "home" button. A standard drop-down style, but since it's on the footer, dropping "up". I have tried a million different CSS tweaks and Its not working.

This is the URL

http://www.ewebdesignz.com/blt/

This is the HTML for the drop up

<ul id="navigation" class="navigation">
              <li data-slide="1">Home</li>
              <ul class="dropup"> 
              <li data-slide="2">About </li>
				 <li data-slide="8">Menu & Wines</li>
                 <li data-slide="22">Staff</li>
                  <li data-slide="25">Events</li>
                 <li data-slide="23">Private Dining</li>
                   <li data-slide="24">Press</li> 
	    			<li data-slide="10">Contact</li>
                </ul>
	<div class="clear"></div>
			 </ul>
	

Open in new window


And this is the CSS such as it is:

.navigation {cursor:pointer;}
ul.dropup {display:none}
#navigation .dropup li:hover{display:block;position:absolute:margin:0 0 0 -15px;}

Open in new window


My goal is to get the <li>Home</li> on hover to display the remaining list items in a veritical list growing up from the footer.

Thank you
0
Comment
Question by:mcpilot1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 38

Expert Comment

by:Tom Beck
ID: 39881518
CSS:

.navigation {cursor:pointer;position:relative}
ul.dropup {display:none}
#navigation li:hover ul.dropup { display:block;position:absolute;bottom:20px;margin:0 0 0 -15px; }

HTML:

<ul id="navigation" class="navigation">
   <li data-slide="1">
       Home
       <ul class="dropup">
           <li data-slide="2">About </li>
               <li data-slide="8">Menu & Wines</li>
           <li data-slide="22">Staff</li>
           <li data-slide="25">Events</li>
           <li data-slide="23">Private Dining</li>
           <li data-slide="24">Press</li>
             <li data-slide="10">Contact</li>
       </ul>
    </li>
</ul>

Works on a page by itself. Some other css definitions may need to be tweaked when it's incorporated in your complete page.
0
 

Author Comment

by:mcpilot1
ID: 39882313
It works in princicpal but I think because everything is contained within the main "home" <li>, the navigation keeps rolling back up home.

http://www.ewebdesignz.com/blt/

you can roll over the footer on the left where it says "PLACITA" and you'll see the dropup. Click on something like "press" and you will see it roll down to press then right back home. Any solution for this?
0
 
LVL 38

Accepted Solution

by:
Tom Beck earned 500 total points
ID: 39882348
What if you arranged it like this?:

<ul id="navigation" class="navigation">
   <li>
       Menu
       <ul class="dropup">
           <li data-slide="1">Home</li>
           <li data-slide="2">About </li>
           <li data-slide="8">Menu & Wines</li>
           <li data-slide="22">Staff</li>
           <li data-slide="25">Events</li>
           <li data-slide="23">Private Dining</li>
           <li data-slide="24">Press</li>
         <li data-slide="10">Contact</li>
       </ul>
    </li>
</ul>

To get the sub menu to open using only css, the sub menu has to be a child of the parent <li>. Otherwise there's no way to access it using css when the <li> parent is hovered.

I think the above arrangement would be less confusing for the end user. Many users will click on "Home" with the intention of opening the submenu and the page will move away from where they want to be. Better to just have "Home" as one of the menu options.
0
 

Author Comment

by:mcpilot1
ID: 39882403
SCORE!!! THAT WORKS!

Thank you. I have been tearing out what is left of my hair for 3 straight days. I can now style it and we're good to go. Thank you!!
0
 
LVL 38

Expert Comment

by:Tom Beck
ID: 39882797
Glad that worked for you. Thanks for the points.
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question