473,396 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Hierarchical horizontal navigation menu

I've been trying to figure out how to do this for the past 2 days and
am finally tossing in the towel. No matter what I do, I just can't
seem to get it to work and haven't been able to find any examples of
how to do it in a more CSS-oriented way. Most of the hierarchical
examples are for vertical navigation menus.

Basically, I'm trying to achieve the same effect as on
anthropologie.com (that's the only one that I can think of off-hand).
Any clues on how I should begin? And I'm sorry if this is fairly
simple to do, but I'm a newbie to the whole pure XHTML/CSS thing.
Thanks.

Oh, and in case it helps, here's a bit of my stylesheet just in case
it helps.

/* --- Overall Definitions --- */
body {
background: #422605;
margin: 0;
padding: 0;
text-align: center;
color: #000000;
font-family: "Lucida Grande", Arial, Verdana, Sans-Serif;
font-size: 11px;
}

a {
color: #000000;
text-decoration: none;
}

a:link {
text-decoration: none;
color: #036;
}

a:visited {
color: #036;
text-decoration: none;
}

a:hover {
color: #036;
text-decoration: underline;
}
/* --- Layout Definitions --- */
#mainContainer {
background: transparent;
width: 780px;
height: 800px;
margin: 20px auto 20px auto;
border: #fffaed double 4px;
padding: 2px;
text-align: left;
}

#header {
background: url(logo.png) no-repeat #ffffff;
position: relative;
top: -11px;
width: 100%;
height: 160px;
}

#header h1 {
display: none;
}

#header h2 {
display: none;
}

#header hr {
display: none;
}

#toolbar {
position: absolute;
left: 575px;
top: 5px;
float:right;
}

#search {

}

#search form {

}

#search p {
color: #036;
}

..text {

}

..button {
position: relative;
top: 3px;
}

#wishList {

}

#wishList p {
text-align: center;
}

#navigation {
margin: 0px;
padding: 0px;
position: relative;
top: 80px;
text-align: center;
}

#navigation ul {
padding-left: 0;
margin-left: 0;
background-color: #036;
color: white;
width: 100%;
list-style: none;
}

#navigation li {
display: inline;
}

#navigation a {
padding: 0.2em 1em;
background-color: #036;
color: white;
text-decoration: none;
border-right: 1px solid #fff;
}

#navigation a:hover {
background-color: #369;
color: #fff;
}

#content {
position: absolute;
top: 300px;
left: 56px;
background: #ffffff;
}

#footer {
position: absolute;
top: 400px;
left: 56px;
background: #ffffff;
}
Jul 21 '05 #1
1 5955
Bryan wrote:
I've been trying to figure out how to do this for the past 2 days and
am finally tossing in the towel. No matter what I do, I just can't
seem to get it to work and haven't been able to find any examples of
how to do it in a more CSS-oriented way. Most of the hierarchical
examples are for vertical navigation menus.
Check out the Suckerfish Dropdowns -
http://www.htmldog.com/articles/suckerfish/dropdowns/

Lightweight, attractive, generally a Good Thing.
Oh, and in case it helps, here's a bit of my stylesheet just in case
it helps.

[snip CSS code]

The link should be everything you need, but for future reference - in a
case like this, we'd need more than just the CSS - it's pretty
meaningless without the HTML it's applied to. Best thing is always to
post a live URL

Cheers

P
Jul 21 '05 #2

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

Similar topics

13
by: elad | last post by:
Hi The Menu doesn't work properly when I have 2 frame and the Menu popup frame=document target frame, when I choose item in the menu the doc opened and the menu get stuck. Here is the code...
2
by: Ansgar Hein | last post by:
I have been playing around with several different versions for a horizontal menu, but I haven't been able to build a horizontal navigation based on the vertical one featured on www.alistapart.com...
7
by: addled | last post by:
Hi there, after reading posts here for a few months, I've built the courage to see if someone can see where I"m going wrong in the webpage I've been working on. In particular the horizontal nav...
0
by: thulsey | last post by:
Hi all, I've got some strange behavior happening in Firefox and Safari (Khtml and Gecko) that displays *almost* fine in IE6.0 (still trying to get pixels to line up, anal anal anal...) To...
1
by: pixelwiz | last post by:
Hi, I am a designer working with an external .NET programmer. We are trying to figure out the best way to implement at tab style horizontal menu similar to...
9
by: Verona Busch | last post by:
Hi everybody, I am very happy to find this group. I am searching for a solution to make a horizontal list menu with submenu on hover. I found a lot of examples for horizontal lists which open...
3
by: Syl | last post by:
Hi Group - trying my question again. :-) I'dl like to use CSS to replicate the top navigation like this : http://www.checkeredshirt.com/jo-menu/ Currently - this nav menu everything is in a...
17
by: Nyris | last post by:
I have this code used for the navigation on an HTML page. It's an accordion style dropdown menu. Everything works fine I just need to change it so that the submenuheader class allows it to be a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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...
0
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...

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.