Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

"drop up" footer menu

Posted on 2014-02-23
5
Medium Priority
?
1,581 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

705 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