473,769 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dropdown menu...can this be done?

Mostly I need to figure if I'm wasting my time or if there is a way to
do what I am trying to do. I am an intermediate to CSS at best so
please don't flame me, just trying to do my job here.

I came across this article when I searched for a CSS solution to long
winded DHTML dropdown menus.
http://www.alistapart.com/articles/dropdowns/ I did get it to work but
here's my problem. What I "did" get to work was a horizontal drop in a
single table cell, e.g. I have this large opening background image in
single cell with this menu residing inside of it. Here it works fine.
I have another page where I have the same style dropmenu (vertical in
this case). It drops fine. My problem: the menu resides in a cell
with a background at the top of the page. The menu drops over the cell
below but when the primary hover target (for lack of a better way to
describe it) loses focus the sub items disappear.

My question: are the dropped sub-items disappearing because this can't
be done across table cells? Or is there a way to do this? Here are
the relevant items from the style sheet. The html that I am using is
below this. This is an IE js that is also needed but I've left it out
unless someone thinks it will help with an answer.

Thanks!

ul { /* all lists */
padding: 0;
margin: 0;
list-style: none;
font-size: 12px;
}

li { /* all list items */
float: left;
position: relative;
width: 100px;
padding : 5px;
}

li ul { /* second-level lists */
display: none;
position: absolute;
top: 30px;
left: 0;
}

li>ul { /* to override top and left in browsers other than IE, which
will position to the top right of the containing li, rather than bottom
left */
top: auto;
left: auto;
}

li:hover ul, li.over ul { /* lists nested under hovered list items */
display: block;
}

#content {
clear: left;
}
<body>

<table cellpadding="20 " cellspacing="0" border="0" align="center"
width="100%" height="100%" class="outterBo dy">
<tr>
<td align="center" valign="middle" height="550"><!--outterBody Cell
opens here -->
<table border="0" cellpadding="0" cellspacing="0" width="750"
height="550" class="innerBod y"><!--innerBody table starts here-->
<tr>
<td background="new Banner.jpg" width="750" height="140">&n bsp;
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td height="100">&n bsp;

</td>
</tr>
<tr>
<td height="25" align="right">
<ul id="nav">
<li><a href="#">About Us</a></li>
<li><a href="#">News</a>
<ul>
<li><a href="#">News</a></li>
<li><a href="#">Events Calendar</a></li>
<li><a href="#">Announ cements</a></li>
</ul>
</li>
<li><a href="#">Consul ting</a>
<ul>
<li><a href="#">Qualit y Management Systems</a></li>
<li><a href="#">Labora tory Accreditation</a></li>
<li><a href="#">Enviro nmental Management Systems</a></li>
</ul>
</li>
<li><a href="#">Traini ng</a>
<ul>
<li><a href="#">Qualit y Management</a></li>
<li><a href="#">Busine ss Management</a></li>
<li><a href="#">Operat ions Management</a></li>
</ul>
</li>
<li><a href="#">Other Services</a></li>
<li><a href="#">Resour ces</a></li>
<li><a href="#">Contac t Us</a></li>
</ul>
</td>
</tr>
</table>
</td>
</tr>
<td>&nbsp;

</td>
</tr>
</table>
</td>
</tr>
</table>

</body>

Mar 17 '06 #1
0 1285

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
4239
by: Jean-Fran?ois Lacrampe | last post by:
Hello, I've been using QuickForm for a few months now and I am now given a new challenge: I've got a search form with a dozen of dropdown menus, the first dropdown menu being "Brand". If you select either Brand A, B, C, D... Z, the second dropdown menu "Model" must be dynamically changed to model AA, AB, AC, AD..., according to the models manufactured by the brand selected in the first box.
32
2734
by: Continental Translations | last post by:
Can anybody help me? I am trying to create two drop down menus, where the results of the second one vary depending on what was selected in the first one. I am using MS Script Editor in MS Front Page to do this. In my first menu, I want "English" "German" and "Russian." Now if "English" is picked, I want "French" "German" and "Spanish" to appear. If "German" is picked in the first menu, I want "English" to appear" If Russian is picked...
4
1958
by: Ian Davies | last post by:
Hello I have two drop down menus in my php script. The items displayed in the second is dependent on which item is choosen from the first i.e. the choosen item from the first filters the items in the second first dropdown menu sub no sub 1 science >>>>>>>>> if this is selected 2 maths 3 something else
2
1616
by: Ian Davies | last post by:
Hello Ive been informed that I need to do the following in javascript. I have two drop down menus in my php script. The items displayed in the second is dependent on which item is choosen from the first i.e. the choosen item from the first filters the items in the second first dropdown menu sub no sub 1 science >>>>>>>>> if this is selected 2 maths
4
2347
torquehero
by: torquehero | last post by:
Hi all :) I have created a horizontal navbar using Xara Menumaker. The Menu items have several dropdown menus. Its a javascript. When the mouse cursor is moved over any menu item, a dropdown list/menu appears. When the page is opened in the browser (as it appears by default), the dropdown menu positions are correctly displayed. But when I scroll the page and then move the mouse over any menu item of the navbar, the dropdown menu is not...
2
10298
by: William Youngman | last post by:
We are developing an application that presents data to the user in a gridview and we are using the dropdown extender to give the user a SharePoint 2007 type dropdown menu attached to the cells of a given column. We are also using another dropdown menu that the user can use to select data using another quesry using the SelectedIndex change method. Upon initial page load everything works fine and the user is presented with a SharePoint type menu....
1
1480
by: nrose | last post by:
I have this page set up: http://dev.ayporchestras.org/index2.php If you mouse over "quicklinks" at the top, you should get a dropdown menu. Works in Firefox, and supposedly in IE6, but not in IE7. I get "object required" and "dropmenuobj" is null or not an object. The code comes straight from dynamic drive's "anylink menu", and I did not change anything. I do have two different dropdown menus on the site (main menu works in all...
1
2175
by: redgoals | last post by:
Hi, I have searched the forum for a similar problem but have been unable to find anything. What i am trying to achieve is a dropdown menu which behaves in the following way: 1, Someone selects an category from the first dropdown menu 2, if the category has subcategories then dynamically create a new dropdown underneath and in the process fill it with the subcategories from the chosen option in the first menu. 3, keep doing the above...
0
9579
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
10038
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9987
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
9857
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...
1
7404
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5294
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...
0
5444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3952
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
2812
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.