Results 1 to 10 of 2344

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by jettrue View Post
    What's your set width for dropMenuWrapper and dropMenu? What's your font size for the menu?
    The main thing is all now stays on one line and does not wrap in either IE6 or FF. With your assistance I have succeeded. Thanks!

    Anyone aware of a good web resource explaining how FF, IE6 and IE7 respond to CSS and providing workarounds and hacks?

    Below is my latest relevant CSS. Still some "em" values to convert to "px" but I'm slowly getting there (no real need to convert for the submenu items).

    Woody

    Code:
    #dropMenuWrapper {
    	width: 100%; /* ORIG */
    	height: 5px; /* ORIG */
    	margin: 0; /* ORIG  */
    	font-size: 11px; /* ORIG */
    	padding-bottom: 1px;  
    	}
    	
    div#dropMenu {
    	width: 840px; 
    	margin: 0 auto; /* ORIG */
    	text-align: center; /* ORIG */
    	z-index: 1000; /* ORIG */
    	position: relative; /* ORIG */
    	}
    
    div#dropMenu ul {
    	margin: 0; 
    	padding: 0;
    	}
    	
    div#dropMenu li { 
    	position: relative; /* ORIG */
    	list-style: none; /* ORIG */
    	margin: 0; /* ORIG */
    	float: left; /* ORIG */
    	line-height: 1em; /* ORIG */
    	width: 16.667%; /* width added by jade */
    	background: #A5B7E9; /*NOT IN ORIG */
    	}
    	
    div#dropMenu ul.level1 {
    	width: 70em; /* ORIG  NOT ME */
    	margin: 0 auto; /* ORIG  NOT ME */
    	text-align: center; /* ORIG */
    	height: 2.17em; /* ORIG */
    	z-index: 1000; /* ORIG */
    	}
    
    div#dropMenu li a {
    	display: block; /* ORIG */
    	padding: 5px 0 5px 0; /* by Jade */
    	text-decoration: none; /* ORIG */
    	text-transform: uppercase; /* ORIG */
    	color: #ffffff; /* ORIG */
    	text-align: center; /* ORIG */
    	border-right: 1px solid #ffffff; /* ORIG */
    	border-left: 1px solid #ffffff; /* by jade  */
    	}	
    
    div#dropMenu ul.level2 {
    	top: 3px;
    	background: #4f4f4f;
    	z-index: 1000;
    	left: 0; /* recommend by jade */
    	}

  2. #2
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by Woodymon View Post
    The main thing is all now stays on one line and does not wrap in either IE6 or FF. With your assistance I have succeeded. Thanks!

    Anyone aware of a good web resource explaining how FF, IE6 and IE7 respond to CSS and providing workarounds and hacks?

    Below is my latest relevant CSS. Still some "em" values to convert to "px" but I'm slowly getting there (no real need to convert for the submenu items).

    Woody

    Code:
    #dropMenuWrapper {
    	width: 100%; /* ORIG */
    	height: 5px; /* ORIG */
    	margin: 0; /* ORIG  */
    	font-size: 11px; /* ORIG */
    	padding-bottom: 1px;  
    	}
    	
    div#dropMenu {
    	width: 840px; 
    	margin: 0 auto; /* ORIG */
    	text-align: center; /* ORIG */
    	z-index: 1000; /* ORIG */
    	position: relative; /* ORIG */
    	}
    
    div#dropMenu ul {
    	margin: 0; 
    	padding: 0;
    	}
    	
    div#dropMenu li { 
    	position: relative; /* ORIG */
    	list-style: none; /* ORIG */
    	margin: 0; /* ORIG */
    	float: left; /* ORIG */
    	line-height: 1em; /* ORIG */
    	width: 16.667%; /* width added by jade */
    	background: #A5B7E9; /*NOT IN ORIG */
    	}
    	
    div#dropMenu ul.level1 {
    	width: 70em; /* ORIG  NOT ME */
    	margin: 0 auto; /* ORIG  NOT ME */
    	text-align: center; /* ORIG */
    	height: 2.17em; /* ORIG */
    	z-index: 1000; /* ORIG */
    	}
    
    div#dropMenu li a {
    	display: block; /* ORIG */
    	padding: 5px 0 5px 0; /* by Jade */
    	text-decoration: none; /* ORIG */
    	text-transform: uppercase; /* ORIG */
    	color: #ffffff; /* ORIG */
    	text-align: center; /* ORIG */
    	border-right: 1px solid #ffffff; /* ORIG */
    	border-left: 1px solid #ffffff; /* by jade  */
    	}	
    
    div#dropMenu ul.level2 {
    	top: 3px;
    	background: #4f4f4f;
    	z-index: 1000;
    	left: 0; /* recommend by jade */
    	}
    Try changing that 70em to 840px. Also, since your menu is now a set width, instead of using 16.667%, you can use 140px instead. (840px divided by 6).

  3. #3
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by jettrue View Post
    Try changing that 70em to 840px. Also, since your menu is now a set width, instead of using 16.667%, you can use 140px instead. (840px divided by 6).
    Hey thanks. Very good recommends and learning something at the same time.

    I also discovered
    div#dropMenu ul.level2
    top: 22px;
    was needed. Otherwise when hover over Home in menu, the drop down menu covered the Home link.

    Woody

  4. #4
    Join Date
    Mar 2006
    Posts
    23
    Plugin Contributions
    0

    Default Re: CSS Dropdown menu for your header- With Categories!

    Hi,

    Is there a way to make the menu "sticky"? I'm using a css horizontal menu with a horizontal flyout for over a year and am wondering if somebody knows how to make the menu "sticky" for 5-10 seconds.

    This would realy increase the usability since when you don't move the cursor acurate, the menu gets killed.

    Thanks in advance.

  5. #5
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by Tieske View Post
    Hi,

    Is there a way to make the menu "sticky"? I'm using a css horizontal menu with a horizontal flyout for over a year and am wondering if somebody knows how to make the menu "sticky" for 5-10 seconds.

    This would realy increase the usability since when you don't move the cursor acurate, the menu gets killed.

    Thanks in advance.
    No, unfortunately it is not an option with a css only menu, that would be available in a javascript based menu.

    There's no gap between your menu item and the drop downs below it, is there?

  6. #6
    Join Date
    Mar 2006
    Posts
    23
    Plugin Contributions
    0

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by jettrue View Post
    No, unfortunately it is not an option with a css only menu, that would be available in a javascript based menu.

    There's no gap between your menu item and the drop downs below it, is there?
    I thought so (java), thanks anyway.

    The menu is working just fine (www interieurbeslag nl), but visitors have to balance with their cursor between the upper and lower borders of the menublocks since it also flies horizontal.

    The best solution will be changing it to an horizontal menu with vertical flyout like the dropmenu discussed here.

    A quick change didn't work since I had trouble with the submenu of the catagories with this menu. And I forgot what makes a flyout vertical... learning by doing a year ago wasn't ideal for long term ;).

  7. #7
    Join Date
    Jun 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: CSS Dropdown menu for your header- With Categories!

    Hi
    I'm using this rather nice menu but have hit a problem - some of my categories go more than 5 deep - and the flyout does strange things once you are 4 subcats in - it automatically pops out all the lower subs into an unusable mess. Is there any way to extend the depth this menu supports as I guess that lvl 4 behaviour is in the code somewhere...?

    Thanks for any help

    WOoDY
    (www.jorvikgames.co.uk)

 

 

Similar Threads

  1. Categories dropdown menu/css
    By KenshiroU in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Apr 2013, 01:04 PM
  2. HIde categories mod with css dropdown menu
    By adowty in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Feb 2012, 01:05 AM
  3. How to use ezpages/categories as dropdown menu in the header?
    By mdivk in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 21 Dec 2011, 06:32 PM
  4. whats wrong with this css for my dropdown menu?
    By 1kell in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 28 May 2010, 02:47 AM
  5. Header Dropdown Menu (CSS) Without the Dropdown???
    By hcd888 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 May 2009, 01:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg