473,786 Members | 2,462 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to change a horizontal drop down menu to do this?

6 New Member
I have a working horizontal drop-down menu that is css driven, on hover sub-menu items currently appear below the parent item. I however, would like to know if I can make them appear ABOVE the parent item instead. I know it's not traditional but the site I'm working on would be perfect if I can get it working!

I'd appreciate any and all info!
Oct 21 '10 #1
10 1660
Death Slaught
1,137 Top Contributor
Yes it's possible, but we need either a link to your site or the code you're using.


Thanks, Death
Oct 21 '10 #2
Kimberly Tune
6 New Member
No problem! www.altruisticsolutions.net/ts2 I appreciate the help! You should see the menu currently drops down (about us)- I don' t have the menu fully populated yet or anything.
Oct 21 '10 #3
drhowarddrfine
7,435 Recognized Expert Expert
I don't see any menu at all.
Oct 21 '10 #4
JKing
1,206 Recognized Expert Top Contributor
To make your dropdown appear above your menu you want to set the sub menu ul to be positioned relative to the bottom instead of the top.

I copied your html for your menu and the related css. Below are the changes I made.
Expand|Select|Wrap|Line Numbers
  1. .art-menu ul
  2. {
  3.   visibility: hidden;
  4.   position: absolute;
  5.   z-index: 10;
  6.   left: 0;
  7.   /*top: 0;*/
  8.   background: none;
  9. }
  10.  
  11. .art-menu li:hover>ul
  12. {
  13.   visibility: visible;
  14.   bottom: 0;
  15. }
  16.  
Oct 21 '10 #5
Kimberly Tune
6 New Member
Thanks so much, I had tried something similar but I missed the change to .art-menu ul! It works now, thanks!
Oct 21 '10 #6
Kimberly Tune
6 New Member
Can I ask what browser you're using that you don't see the menu?
Oct 21 '10 #7
Death Slaught
1,137 Top Contributor
  1. This solution only works in Firefox, and only one submenu appears.
  2. The menu is shoved to the left in Safari and Chrome; and Opera has a z-index issue with the submenu. I don't have IE. Also, Chrome scrolls your content.
  3. You're floating elements contained by an absolutely positioned element. This removes these elements from the normal flow of the page.
  4. Unless you have 12,999 other elements that need to be on top of one another - the z-index value will never need to be 13,000. It's confusing and takes more time to find the smallest or largest value.
  5. Have a look at this.


Regards, Death
Oct 21 '10 #8
Kimberly Tune
6 New Member
Bah, I had only looked at it in Firefox and Explorer so far. I only had 1 sub menu up so far, so there was nothing else to show the new additions seem to be popping up okay. I do see the issue with Chrome now that I'm looking at it. That should be fun to try to fix...
Oct 22 '10 #9
Kimberly Tune
6 New Member
2) Anyone have a better solutions for centering that DiV? (the menu) One that works in Chrome too?

#wrapper {
position: absolute;
bottom: 50%;
right: 50%;
height: 500px;
width: 600px;
}
#container {
position: relative;
left: 50%;
top: 50%;
}

html-

<div id="wrapper">
<div id="container" >
<div id="top-menu"><jdoc:inc lude type="modules" name="user3" /></div></div></div>
Oct 22 '10 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

10
3487
by: Haines Brown | last post by:
I've implemented the horizontal drop down menu discussed recently in this newsgroup, and it works nicely under Galeon and Mozilla, but not IE 5.0. Here are the problems: Under IE 5.0, the there is no drop down menu functionality at all. I wanted to implement an alternative stylesheet for IE, but my link to it is apparently broken. What is wrong with my link? I'd
4
2412
by: Amil | last post by:
Does anyone have a recommendation on an AWESOME (free) horizontal drop-down menu using DTHML? I'm not using VS 2005 yet. Thanks. Amil
1
2128
by: Ziphyre | last post by:
Hi, I've got some problems with horizontal drop down menu. It looks fine under Firefox, a mess under IE. I've noticed the following differences/problems: - Extra space between menu items and bottom border - Disapearing sub <ul>s after second sub menu items. - Space between the last sub menu item and the rest
1
1779
by: toby | last post by:
Does anyone have an idea as to why the js does not work on the horizontal drop down menu in IE 6? I have pretty much used exactly what A List had posted in their article titled, "Drop-down Menus Horizontal Style." Any advice? Thanks <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
1334
by: boien | last post by:
How can i go about this? I would greatly appreciate any expert assistance with this issue, i am trying to find out how but i cant seem to find any way
1
3054
by: azeemqaiser | last post by:
Hi All, I have a form with two drop down controls. I want to change the values of Drop Down Menu 2 if i select some value in Drop Down Menu 1. Like If i select country then all the states of this country should get populated in the second menu. Will appreciate your help.
0
3144
by: mjohnson0321 | last post by:
I am trying to incorporate a CSS drop-down menu into a site (suckerfish menu). The menu gets lost behind the content below it, but only on one of the drop downs (News). The error occurs on all of the browsers I have tested it on (IE6, IE7, Firefox, Opera and Safari). It is probably something simple, but I can't find it! Here is the CSS (using external style sheets): style-temp.css (Main style sheet for the site): * { font-family:...
1
1817
by: GauthamNaidu | last post by:
How to create a pure css horizontal drop down menu as designed in your top menu
0
1689
by: Jack Gray | last post by:
I am using a nested list for a simple drop-down menu. All CSS and XHTML validate. The menu is displayed properly in 7 different newer browsers including IE7, Firefox, Opera & Safari. I have implemented csshover.htc. In IE6, the menu displays on two lines and the drop-down (Calendar) does not work. Any clue where the problem lies? Url: caz-cc.com/index.htm. Thanks soooo much!
0
1782
by: Jack Gray | last post by:
Hi everyone, I am using a nested list for a simple drop-down menu. All CSS and XHTML validate. The menu is displayed properly in 7 different newer browsers including IE7, Firefox, Opera & Safari. I have implemented csshover.htc in the manner I believe is correct. In IE6, the menu displays on two lines instead of a single line and the drop-down (Calendar) does not work (Calendar menu item is not a 'link'). Any clue where the problem...
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9496
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9961
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8989
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4066
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.