Is it possible for a single-level css dropmenu, whereby headings are
aligned horizontally in navbar style, and their subpoints appearing
directly below on hover, to have the following list structure?:
<div id="menu">
<ul>
<li>heading1
<ul>
<li>subpoint1 </li>
<li>subpoint2 </li>
</ul>
</li>
</ul>
<ul>
<li>heading2
<ul>
<li>subpoint1 </li>
<li>subpoint2 </li>
</ul>
</li>
</ul>
</div>
I'm not quite sure how to get the sub-points back below the headings on
hover. My non-functional attempt below:
<style>
#menu ul {
padding: 0;
margin: 0;
list-style: none;
}
#menu a {
display: block;
width: 10em;
}
#menu ul { float: left;
width: 10em;
}
#menu .sub li {
position: absolute;
width: 10em;
left: -999em;
}
#menu li:hover ul {
left:
auto;
}
</style>
<div id="menu">
<ul class="head low">
<li><a href="">heading 1</a>
<ul class="sub">
<li><a href="">subpoin t1</a></li>
<li><a href="">subpoin t2</a></li>
</ul>
</li>
</ul>
<ul class="head low">
<li><a href="">heading 2</a>
<ul class="sub">
<li><a href="">subpoin t1</a></li>
<li><a href="">subpoin t2</a></li>
</ul>
</li>
</ul>
</div>
Any pointers would be appreciated!
Michael
--
Faith is the quality that enables you to eat blackberry jam on a picnic
without looking to see whether the seeds move. 4 2472
On Tue, 10 May 2005 23:26:58 +0200, michael <sp**@noreply.o rg> wrote: Is it possible for a single-level css dropmenu, whereby headings are aligned horizontally in navbar style, and their subpoints appearing directly below on hover, to have the following list structure?:
<example code snipped>
Create one list, with two levels. Not a single list for each item.
See
<http://groups.google.c om/groups?&q=horiz ontal+drop+down &meta=group%3Dc omp.infosystems .www.authoring. stylesheets>
as this is not the first time it gets explained.
I'm not quite sure how to get the sub-points back below the headings on hover. My non-functional attempt below:
If it is non-functional, why include? Why include any code at all? Put up
a mockup or example page on a URL somewhere.
--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'
> Create one list, with two levels. Not a single list for each item.
In other words, in CSS, is it impossible to turn the particular list
structure I used as example, into a drop menu?
Michael
--
Politics is like coaching a football team. you have to be smart enough
to understand the game but not smart enough to lose interest.
> Why would you want to keep that stupid part of code? A list is a list. Not ten lists.
So in other words, a horizintal drop menu can impossibly be styled to work
according to that specific structure? Stupid or not....
Thanks,
Michael
--
When a fellow says, "It ain't the money but the principle of the
thing," it's the money.
-- Kim Hubbard This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: KK |
last post by:
Drop-down menus are the hottest thing since Wonder Bread but . . .
1. Alot of people put them in the
they-look-nice-but-you-cant-code-them-right-so-they-always-look-messed-up
category (a la "frames"). Do you think this is true>
2. Some people think they take up too much KB.
3. Some people are worried that people who have javascript turned off
wont be able to see them. What percent of web users have javascrips
turned off? I thought it was...
|
by: Maggie |
last post by:
is there a way in css to create two level menu?
|
by: vikram.cvk |
last post by:
Hello Experts,
Im trying to design a CSS vertical drop down menu which should have the
following functionality.
Home
About Us
|
-->Overview
|
by: hemanth.singamsetty |
last post by:
Hello there,
I've a drop down menu (created using CSS & Javascript -- see code
below).
My problem is, whenever I click a link on the menu
the new page replaces the current page (and the menu
disappears). Is there a way, I can keep the menu always
on top. ( A good example of what I'm looking for is similar
to the menu bar in http://www.milonic.com/ ).
|
by: CW |
last post by:
I have been using (vertical) data list to simulate menus on left pane of
pages (I don't use drop-down and pull-down menus because javascript must be
enabled). However, the problem with data list is that I can only have 1
level of menus. Is there anyway to get multi-level menu? The idea is that
when one clicks on one menu item, it would expand and reveal sub-menus (if
exists). Clicking at an expanded parent level menu would collapse all...
| |
by: rsteph |
last post by:
I have a javascript drop down menu that I borrowed from a website. It utilizes a little .css to help with formatting. The menu works great, and on all 3 of the browsers I'm concerned about; but I am having one problem.
The menu, as designed, is a 1-tier menu (or is it 2-tier). It has the horizontal menu bar, along with the drop downs... but the drop downs aren't designed to propogate another menu (3rd teir). I was wondering if, but looking at...
|
by: Why name |
last post by:
Hi,
I need to create a Web site for a client.Need help in designing the
left menu item.
The site has got 3 important parts.
User : Who uses the system.
Customer : Users are associated with customer.A single user can be
associated with one or more customers.
Flavour:A customer is linked to a single flavour only.
|
by: Archanak |
last post by:
Hi,
I am using 2-level CSS Drop Down Menu in my perl/CGI program.
here is the code.
#!c:/perl/bin/perl.exe
use CGI qw(:standard);
|
by: jaddi1 |
last post by:
Hi,
I am trying to make a multi-level drop-down menu similar to what is seen here: http://www.cssplay.co.uk/menus/simple_vertical.html. My problem is that some of the menu will be populated from a database.
My menu will be structured as follows:
The first setion of the menu is hard-coded (the home and management sections). The rest of the menu will be populated from a database.
The top level links (categories) will come from one table...
|
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...
|
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,...
| |
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |