Zen Cart Logo
Forums / All Other Contributions/Addons / CSS Dropdown menu for the header- With Categories!

CSS Dropdown menu for the header- With Categories!

Views: 615,588

Results 1,521 to 1,540 of 2,344
26 Mar 2009, 9:54 PM
#1521
yz250 avatar

yz250

New Zenner

Join Date:
Dec 2008
Location:
Canberra, Australia
Posts:
83
Plugin Contributions:
0

CSS Dropdown menu for the header- With Categories!

*Give that last menu item (contact us) a class of "noLine", like this:

<a class="noLine" href="

Then it will get rid of the last border; it's not needed*

Thanks heaps JT.

Brendan

27 Mar 2009, 2:26 PM
#1522
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Re: CSS Dropdown menu for the header- With Categories!

How do I turn off the Drop Down menu?

In EZ pages, the Header is set to 0 yet the drop down header won't turn off.

27 Mar 2009, 2:29 PM
#1523
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: CSS Dropdown menu for the header- With Categories!

countrycharm:

jettrue I have a question for you. I am using the Return Authorization Module and it put the link for it into the information side box. My question is how would I add it in the drop down menu. Thank you ahead of time.

Never mind with some help I got it to work.

27 Mar 2009, 5:58 PM
#1524
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Hi
I have added the horizontal menu bar to my zencart. Its all working fine however my header and logo have gone out of position and the logo has moved towards the centre instead of the left. The part above my header where i had the tile_back.gif image has gone and its all while. Would you mind having a look to see what seems to be the problem. I have category dressing as an add on as well.

cheers

url ravsappliances.com

28 Mar 2009, 3:19 PM
#1525
karimm avatar

karimm

New Zenner

Join Date:
Nov 2008
Posts:
53
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

karimm:

Hello everyone,

I would like to have the hovering color or image or background to show when visting a link (active link), so customers can see in what gategory they's browsing.

Any sugestions ?

Thanks

I need really some help on this, i can't get it to work.
Jadetrue, please let me know if it's possible.

regards,

28 Mar 2009, 8:06 PM
#1526
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: CSS Dropdown menu for the header- With Categories!

webskipper:

How do I turn off the Drop Down menu?

In EZ pages, the Header is set to 0 yet the drop down header won't turn off.

That turns off the ezpages. My menu is not controlled by turning off ezpages. If you want this menu to be gone, then

You'll have to open up includes/templates/YOUR_TEMPLATE/common/tpl_header.php

and remove the portion that calls the drop down menu.

28 Mar 2009, 8:09 PM
#1527
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: CSS Dropdown menu for the header- With Categories!

abs007:

Hi
I have added the horizontal menu bar to my zencart. Its all working fine however my header and logo have gone out of position and the logo has moved towards the centre instead of the left. The part above my header where i had the tile_back.gif image has gone and its all while. Would you mind having a look to see what seems to be the problem. I have category dressing as an add on as well.

cheers

url ravsappliances.com

Hmm, your issue may be because you uploaded my includes/templates/YOUR_TEMPLATE/common/tpl_header.php instead of following this portion of the readme.txt:

  1. If you have heavily modified your includes/templates/YOUR_TEMPLATE/common/tpl_header.php, instead of uploading the tpl_header.php included in this download, you can simply add this to your header where you'd like the css menu to appear:
<!--bof-drop down menu display--> <?php require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_drop_menu.php');?> <!--eof-drop down menu display--> <div class="clearBoth"></div>
28 Mar 2009, 8:10 PM
#1528
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: CSS Dropdown menu for the header- With Categories!

karimm:

I need really some help on this, i can't get it to work.
Jadetrue, please let me know if it's possible.

regards,

It's not possible.

28 Mar 2009, 10:53 PM
#1529
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Thanks alot that solved it. Can this be used for categories aswell for the left vertical categories box?

cheers

29 Mar 2009, 12:19 AM
#1530
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: CSS Dropdown menu for the header- With Categories!

abs007:

Thanks alot that solved it. Can this be used for categories aswell for the left vertical categories box?

cheers

someone would have to make some coding changes, as it is, no it wont work.

29 Mar 2009, 11:49 AM
#1531
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Ok cheers
Im using the category dressing add on also. Maybe i could add the code from the horizontal css menu to the category dressing. Or there maybe a way of getting them to work alongside each other

29 Mar 2009, 3:53 PM
#1532
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

I use the google developers tool add on in firefox and it provides you with 3 little green ticks on the top right corner of your browser if the page loads without any errors. Now that i am using the css header drop down menu i am having the middle tick come as a red explanation mark. When hovered over it tells me that i have an error in css. When i click into it i have 4 errors coming from the css drop down header add on.

Any idea how to get this resolved

29 Mar 2009, 7:44 PM
#1533
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: CSS Dropdown menu for the header- With Categories!

abs007:

I use the google developers tool add on in firefox and it provides you with 3 little green ticks on the top right corner of your browser if the page loads without any errors. Now that i am using the css header drop down menu i am having the middle tick come as a red explanation mark. When hovered over it tells me that i have an error in css. When i click into it i have 4 errors coming from the css drop down header add on.

Any idea how to get this resolved

They can be ignored, they are hacks to get this to work in older versions of IE. IF you want to get rid of the errors, get rid of the menu. :P

29 Mar 2009, 10:11 PM
#1534
studiotucker avatar

studiotucker

New Zenner

Join Date:
Sep 2008
Posts:
47
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Jettrue.....Wanted to say thanks for the mod....No problems, no issues, loaded easily, works well in all browsers, including IE6, and easy to customize(though I have done only some minor tweaks). Easy to make multi-lingual. Cup-o-coffee on the way as soon as I take a break from building......

Misa's Fashion Cafe

:D

1 Apr 2009, 3:26 AM
#1535
medibiz avatar

medibiz

New Zenner

Join Date:
Feb 2009
Posts:
12
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Jettrue,

I know that your time and effort on this thead is voluntary. So I am trying not to post unless I have already tried my best to work out my own problems. I am having a menu behavior problem that I can not figure out on my own. I am hoping that you might have some insight into its resolution. The problem is that when using IE7, submenus spontaneously expand. For example: If you start on the top horizontal menu. Scroll down the drop menu, scroll over the third level flyout menu, then mouse over the top menu again, the submenus that were previously highlighted expand automaticaly while on the top menu.

You can observe this behavior at https://www.medibiz.us

If this has been addressed previously please just send the thread URL. But I've searched and haven't run across an answer.

The following is my stylesheet_header_menu.css. I have the feeling that my problem lies within something that I've done in this file. The notes are just notes to myself just ignore them.

Thanks for any advice that you may provide.
David

stylesheet_header_menu.css

body {
behavior: url(includes/csshover.htc);
}

/* Note 1: For the Arrow Down and Arrow Right images make sure that they are the same height as the background images. This will help them to display at the same height within the cells consistantly. */

div#dropMenu li a:hover,
div#dropMenu ul.level2 a:hover {
color: #111111!important;
background:url(../images/bar_orange.gif);
font-weight: bold;
display: block;
}

#dropMenuWrapper {
width:100%;
font-size:11px;
height: 25px;
}

div#dropMenu {
width:1000px;
border-top: 1px solid #9a9a9a;
border-bottom: 1px solid #9a9a9a;
padding: 0;
text-align:center;
z-index:1000;
position:relative;
}

div#dropMenu ul {
margin:0; /* this is the space between the top menu and the drop menus, should be zero or there will be a problem with mouse hovering because of the gap. */
padding:0;
}

div#dropMenu li {
position:relative;
list-style:none;
float:left;
line-height: 1em;
}

div#dropMenu ul.level1 {
width:1000px;
text-align:center;
height: 25px;
font-weight: bold;
background:url(../images/bar_dark_blue.gif); /*background image of top row that contains sub-menus but is not highlighted. */
z-index:1000;
display: block;
}

div#dropMenu li a {
display: block;
/* Hides from IE5-mac /
height: 1%;
/
End hide from IE5-mac /
line-height: 1em;
padding-top: 0.6em;
padding-bottom: 0.6em;
padding-left: 20px;
padding-right: 22px; /
More padding to the right to provide more space or the down arrow. /
text-decoration: none;
color:#ffffff;
text-align:center;
border-right: 1px solid #555555;
border-bottom:0; /
This is necessary so that when the mouse is moved from below the top menu to the top menu that there is no space between the top menu and drop menus where the drop menus automatically explode. */
border-left: 0;
border-top: 0;
}

div#dropMenu li:hover {display: block; margin:0; padding:0;} /* If you put the hover image on this line, it creates a hightlighted breadcrumb indicator on the tab in the top bar. /
div#dropMenu li.submenu {background: url(../images/menudown.gif) 95% 50% no-repeat; margin:0; padding:0;}
div#dropMenu li.submenu:hover { }
div#dropMenu li a.noLine {border:0; margin:0;} /
This keeps the very last right vertical border white line from displaying on the very top row. /
div#dropMenu>ul a {width: auto; border-left:0; border-top:0; border-bottom:0;} /
These "border-XX: 0;" helps to prevent the drop menus from automatically exploding, caused by mouse-overs on adjecent menu tabs. /
div#dropMenu ul ul {position: absolute; width: 17em; display: none; border:0; padding: 0; } /
This position and width values help to keep the hover image on the very top row from extending onto neighboring cells. /
div#dropMenu ul ul li {border-left: 1px solid #555555; border-bottom: 1px solid #555555; border-right: 1px solid #555555; background:url(../images/bar_blue.gif); width: 17em; z-index:1000;} /
This combination of border top & bottom keeps the drop menus from overlapping with the top menu, and having too much space between drop menu rows. This background image/color is used for drop menus that don't have sub-menus. */
div#dropMenu li.submenu li.submenu {background: url(../images/menuright.gif) 96% 50% no-repeat; margin:0; padding:0; }

div#dropMenu ul.level1 li.submenu:hover ul.level2,
div#dropMenu ul.level2 li.submenu:hover ul.level3,
div#dropMenu ul.level3 li.submenu:hover ul.level4,
div#dropMenu ul.level4 li.submenu:hover ul.level5,
div#dropMenu ul.level5 li.submenu:hover ul.level6,
div#dropMenu ul.level6 li.submenu:hover ul.level7,
div#dropMenu ul.level7 li.submenu:hover ul.level8 {position: absolute; width: 17em; display:block;z-index:1000; }

div#dropMenu ul.level2 {background: url(../images/bar_blue.gif); z-index:1000;position:absolute;left:0; } /* this background image/color is for drop menus that DO have sub-menus. "top: 25px;" positions the drop menu just below the top menu. */

div#dropMenu ul.level3,
div#dropMenu ul.level4,
div#dropMenu ul.level5,
div#dropMenu ul.level6,
div#dropMenu ul.level7,
div#dropMenu ul.level8{background: url(../images/bar_blue.gif); top: -1px; left: 17em; z-index:1000;; padding:0; border-top: 1px solid #555555;} /* "top: Xpx;" positions the 2nd drop menu row X pixels lower than the 1st drop menu row. Use this to help provide a space/seperation or visual indication that this column is not associated with the very top row. */

div#dropMenu ul.level2 a {display: block; padding-right: 0; padding-left: 1em; color:#333333; font-weight: bold; text-transform:none; text-align:left; margin: 0; border: 0;} /* this is image/text color on drop-down submenu. The "margin: and border;" values of zero is important for the drop menus to NOT inherit the borders set above for the top menu. "Padding-left: 1em;" is used to indent the left aligned text from the left vertical bar. The "display: block;" on this line is important in preventing an annoying behavior where the sub-menus will automaticall expand on mouse-over movements on the top menu. */

/* div#dropMenu ul.level2 a:hover {display:block; border: 0;} / / This is not used in this version of the menu */

.clearBoth {
clear:both;
height:0;
font-size:0;
line-height:0;
}

1 Apr 2009, 1:19 PM
#1536
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: CSS Dropdown menu for the header- With Categories!

MediBiz:

Jettrue,

I know that your time and effort on this thead is voluntary. So I am trying not to post unless I have already tried my best to work out my own problems. I am having a menu behavior problem that I can not figure out on my own. I am hoping that you might have some insight into its resolution. The problem is that when using IE7, submenus spontaneously expand. For example: If you start on the top horizontal menu. Scroll down the drop menu, scroll over the third level flyout menu, then mouse over the top menu again, the submenus that were previously highlighted expand automaticaly while on the top menu.

You can observe this behavior at https://www.medibiz.us

If this has been addressed previously please just send the thread URL. But I've searched and haven't run across an answer.

The following is my stylesheet_header_menu.css. I have the feeling that my problem lies within something that I've done in this file. The notes are just notes to myself just ignore them.

Thanks for any advice that you may provide.
David

stylesheet_header_menu.css

body {
behavior: url(includes/csshover.htc);
}

/* Note 1: For the Arrow Down and Arrow Right images make sure that they are the same height as the background images. This will help them to display at the same height within the cells consistantly. */

div#dropMenu li a:hover,
div#dropMenu ul.level2 a:hover {
color: #111111!important;
background:url(../images/bar_orange.gif);
font-weight: bold;
display: block;
}

#dropMenuWrapper {
width:100%;
font-size:11px;
height: 25px;
}

div#dropMenu {
width:1000px;
border-top: 1px solid #9a9a9a;
border-bottom: 1px solid #9a9a9a;
padding: 0;
text-align:center;
z-index:1000;
position:relative;
}

div#dropMenu ul {
margin:0; /* this is the space between the top menu and the drop menus, should be zero or there will be a problem with mouse hovering because of the gap. */
padding:0;
}

div#dropMenu li {
position:relative;
list-style:none;
float:left;
line-height: 1em;
}

div#dropMenu ul.level1 {
width:1000px;
text-align:center;
height: 25px;
font-weight: bold;
background:url(../images/bar_dark_blue.gif); /*background image of top row that contains sub-menus but is not highlighted. */
z-index:1000;
display: block;
}

div#dropMenu li a {
display: block;
/* Hides from IE5-mac /
height: 1%;
/
End hide from IE5-mac /
line-height: 1em;
padding-top: 0.6em;
padding-bottom: 0.6em;
padding-left: 20px;
padding-right: 22px; /
More padding to the right to provide more space or the down arrow. /
text-decoration: none;
color:#ffffff;
text-align:center;
border-right: 1px solid #555555;
border-bottom:0; /
This is necessary so that when the mouse is moved from below the top menu to the top menu that there is no space between the top menu and drop menus where the drop menus automatically explode. */
border-left: 0;
border-top: 0;
}

div#dropMenu li:hover {display: block; margin:0; padding:0;} /* If you put the hover image on this line, it creates a hightlighted breadcrumb indicator on the tab in the top bar. /
div#dropMenu li.submenu {background: url(../images/menudown.gif) 95% 50% no-repeat; margin:0; padding:0;}
div#dropMenu li.submenu:hover { }
div#dropMenu li a.noLine {border:0; margin:0;} /
This keeps the very last right vertical border white line from displaying on the very top row. /
div#dropMenu>ul a {width: auto; border-left:0; border-top:0; border-bottom:0;} /
These "border-XX: 0;" helps to prevent the drop menus from automatically exploding, caused by mouse-overs on adjecent menu tabs. /
div#dropMenu ul ul {position: absolute; width: 17em; display: none; border:0; padding: 0; } /
This position and width values help to keep the hover image on the very top row from extending onto neighboring cells. /
div#dropMenu ul ul li {border-left: 1px solid #555555; border-bottom: 1px solid #555555; border-right: 1px solid #555555; background:url(../images/bar_blue.gif); width: 17em; z-index:1000;} /
This combination of border top & bottom keeps the drop menus from overlapping with the top menu, and having too much space between drop menu rows. This background image/color is used for drop menus that don't have sub-menus. */
div#dropMenu li.submenu li.submenu {background: url(../images/menuright.gif) 96% 50% no-repeat; margin:0; padding:0; }

div#dropMenu ul.level1 li.submenu:hover ul.level2,
div#dropMenu ul.level2 li.submenu:hover ul.level3,
div#dropMenu ul.level3 li.submenu:hover ul.level4,
div#dropMenu ul.level4 li.submenu:hover ul.level5,
div#dropMenu ul.level5 li.submenu:hover ul.level6,
div#dropMenu ul.level6 li.submenu:hover ul.level7,
div#dropMenu ul.level7 li.submenu:hover ul.level8 {position: absolute; width: 17em; display:block;z-index:1000; }

div#dropMenu ul.level2 {background: url(../images/bar_blue.gif); z-index:1000;position:absolute;left:0; } /* this background image/color is for drop menus that DO have sub-menus. "top: 25px;" positions the drop menu just below the top menu. */

div#dropMenu ul.level3,
div#dropMenu ul.level4,
div#dropMenu ul.level5,
div#dropMenu ul.level6,
div#dropMenu ul.level7,
div#dropMenu ul.level8{background: url(../images/bar_blue.gif); top: -1px; left: 17em; z-index:1000;; padding:0; border-top: 1px solid #555555;} /* "top: Xpx;" positions the 2nd drop menu row X pixels lower than the 1st drop menu row. Use this to help provide a space/seperation or visual indication that this column is not associated with the very top row. */

div#dropMenu ul.level2 a {display: block; padding-right: 0; padding-left: 1em; color:#333333; font-weight: bold; text-transform:none; text-align:left; margin: 0; border: 0;} /* this is image/text color on drop-down submenu. The "margin: and border;" values of zero is important for the drop menus to NOT inherit the borders set above for the top menu. "Padding-left: 1em;" is used to indent the left aligned text from the left vertical bar. The "display: block;" on this line is important in preventing an annoying behavior where the sub-menus will automaticall expand on mouse-over movements on the top menu. */

/* div#dropMenu ul.level2 a:hover {display:block; border: 0;} / / This is not used in this version of the menu */

.clearBoth {
clear:both;
height:0;
font-size:0;
line-height:0;
}
I know you're using the other menu. Does the same thing happen on my menu, at http://www.applezen.sagefish.com ?

I know this was a problem for a while, though I thought it was fixed with an update, but I'm not positive. However, I don't support the other menu, and I'm not sure what the fix was, if it was indeed fixed.

So anyway, my advice is to see if it happens at my above site; if not, download my latest version of my menu, and see if you can find some differences in my stylesheet that might help.

If it does happen at my site, it's just a bug you'll have to decide whether or not you can live with. You might be able to go through this thread and see if a solution is there, I know the behavior you're referring to has been discussed before.

1 Apr 2009, 6:58 PM
#1538
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: CSS Dropdown menu for the header- With Categories!

countrycharm:

jettrue could you please take a look at the link below and tell me how to correct these problems. Thee are 4 errors with the dropMenu css for some reason. Thank you
http://jigsaw.w3.org/css-validator/validator?profile=css21&warning=0&uri=https%3A%2F%2Fwww.thegoodshepherdstore.com%2F

To correct them, remove the menu. :cool: They are hacks for IE issues:P

1 Apr 2009, 8:35 PM
#1539
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: CSS Dropdown menu for the header- With Categories!

jettrue:

To correct them, remove the menu. :cool: They are hacks for IE issues:P

So what you saying I would have to remove the menu to correct them, now thats just not going to happen....lol :no:
I guess I will live with it. The same for the other problem to. Thanks for taking a look.

1 Apr 2009, 9:03 PM
#1540
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: CSS Dropdown menu for the header- With Categories!

countrycharm:

So what you saying I would have to remove the menu to correct them, now thats just not going to happen....lol :no:
I guess I will live with it. The same for the other problem to. Thanks for taking a look.

Exactly. If it weren't for IE, this thread would be less than half as long. :flex: