This is a discussion on "question about a type of css menu" within the Web Page Design section. This forum, and the thread "question about a type of css menu are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
question about a type of css menu
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
question about a type of css menu
I have a question about how to create the type of navigation menu that http://www.digg.com uses. The categories are "Technology" "Science"
"World & Business" "Sports" "Entertainment" and "Gaming". And a pointer specifies which menu you have currently selected. Now when you click on a topic and you are taken to the next page, the navigation menu has changed and below it, are categories within the category you selected, and the category within the category that you are currently in is also specified by an arrow. Now I have been searching for how to recreate such an effect and have come up empty...I was wondering if anyone here would be kind enough to explain or point me in the direction of a helpful tutorial... http://www.dynamicdrive.com/style/cs...css-tabs-menu/ ~that is an example of one already made, but I wanna learn how it works and create my own http://www.dynamicdrive.com/dynamicindex1/ddtabmenu.htm ~also something similar... I've noticed, with the dynamicdrive.com examples, that javascript is used, I do not believe digg uses javascript. Is there a way to achieve this effect only using css? In basic terms, I wanna learn how to create a navigation menu, that tells the user what category they are currently in...with a submenu directly below it that also tells the user what subcategory they are currently in...help please? EDIT: http://design.linkworth.com/test.html ~~~Just found that site, and that is exactly the effect I want to create.....I don't want the hover feature that is used here tho... Last edited by camcool21; Apr 9th, 2007 at 04:01. |
|
|
|
||||
|
Re: question about a type of css menu
Just use a background image of an upwards pointing arrow on the selected item. You would be able to use nested lists here, so you'll have something more like:
|
|
||||
|
Re: question about a type of css menu
1. You could actually do nested lists using css -- You have to display the submenus using pseudo-classes and a bag of tricks.
I did it once for fun, but it was hugely difficult to get it right cross-browser, and was unwieldy and balky even when it worked -- it's more a parlor trick than a working method of page building. It's absurd given the power of javascript. If I saved the file somewhere I'll post it here when I find it. I got the framework from that woman who did the box hack for IE 5.5. I'm sure it's on the search engines if you want to look. 2. What Ryan said. If you have static html, just put a different menu on each page. 3. I do the effect with PHP. You give each page an internal name (or you could use the page title, it's just that a new variable means cleaner-looking code; I use $b = a short description like "p1" or "index"). Then I do "if" clauses for each page name in the header include. It's a bit bulky but runs fast and is rock-solid stable. You can do anything you want to with the header. Here's an example. The classes may be a little odd, as you have to allow for differences in the left or rightmost list items. I've put in x's - the "xx" class changes the colors of a top row item and puts a red dot on the item that looks like a little red LED; "xx" does the same thing on a dropdown (aka flyout) item. The "bm2" is a negative bottom margin adjustment to fix gaps in IE7.
Last edited by masonbarge; Apr 9th, 2007 at 16:09. |
![]() |
| Tags |
| menu, digg, css |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Drop Down Menu Question | dawg9 | Website Planning | 10 | Feb 10th, 2007 08:51 |
| How do I do this (menu question)? | Kokie | Website Planning | 1 | Feb 6th, 2007 22:00 |
| input type=submit - beginner's question | mmdesign | Web Page Design | 18 | Aug 11th, 2006 17:19 |
| menu/list width question | swiftmed | Web Page Design | 3 | May 19th, 2006 13:05 |
| Menu Question... | xKillswitchx | JavaScript Forum | 1 | Jun 20th, 2005 20:46 |