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,621

Results 1,221 to 1,240 of 2,344
4 Oct 2008, 7:18 PM
#1221
nosleephotel avatar

nosleephotel

New Zenner

Join Date:
Sep 2008
Location:
Los Angeles, CA
Posts:
67
Plugin Contributions:
0

CSS Dropdown menu for the header- With Categories!

If my understanding is correct, csshover.htc and the additions to .htaccess is what makes it work with IE 6. Did you follow these parts of the instruction:```
4. The .htc file is required for IE browsers pre ver. 7. However, IE has 2 issues with the .htc file:
1. it must stay within the same domain it is called from - note* www.yourdomain.com and yourdomain.com are TWO different domains to IE
2. it must be served as mime type text/x-component from your server
The included sample .htaccess file has code to:
1. 301 redirect all www.yourdomain.com to yourdomain.com (you can reverse it if you like just so only one of them is being used)
2. have the .htc file servered using the correct mime type
(If your domain is not hosted on an apache server, you'll need to do the above differently)


I'm new to CSS Dropdown as well so it's a bit of the blind leading the blind.  Hopefully someone else can help answer your problem.
4 Oct 2008, 9:26 PM
#1222
dieuxsoldat_04 avatar

dieuxsoldat_04

Zen Follower

Join Date:
Jan 2008
Location:
Southern California Coast
Posts:
174
Plugin Contributions:
0

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

Hey guys,

I just installed this plugin and I am having some issues. Here is the test site, Vibrant Instrumentals.

One of the problems is the margin on the CSS Menu. I would like to make it 25px from the top and 92px from the bottom. I been messing around and when I do actually succeed at setting this margin, the whole block is gray and blocks my background images.

I would like to set the margin for the whole CSS menu to margin: 25px 0px 92px, make everything have a black background, not block my background image, and lastly can someone tell me where to edit all the HEADER_TITLE's? I use custom pages as you can see on the site.

Any help would be greatly appreciated! Sorry for the multiple questions, I am not very talented at CSS, heh.

  • Jason
4 Oct 2008, 9:54 PM
#1223
dieuxsoldat_04 avatar

dieuxsoldat_04

Zen Follower

Join Date:
Jan 2008
Location:
Southern California Coast
Posts:
174
Plugin Contributions:
0

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

Just wanted to let you guys know, I got the margin to work now. Instead of editing the menu's css sheet, I edited the template stylesheet and added margin-top: 92px auto to #logoWrapper.

I am still having trouble finding out how to change the HEADER_TITLE and I strted to wonder if adding an image behind the menu buttons is possible?

Thanks in advance!

  • Jason
5 Oct 2008, 4:29 AM
#1224
dieuxsoldat_04 avatar

dieuxsoldat_04

Zen Follower

Join Date:
Jan 2008
Location:
Southern California Coast
Posts:
174
Plugin Contributions:
0

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

After messing around for a few hours, I figured them all out on a test site. The header's turned out to just need some editing in headermenu.php. Last remaining question is can I add images behind the buttons and can I add lines or the border between each button without it having to be arranged with an odd one out?

  • Jason
6 Oct 2008, 11:18 PM
#1225
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
856
Plugin Contributions:
0

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

Anyone?

7 Oct 2008, 8:25 AM
#1226
ces avatar

ces

Zen Follower

Join Date:
Nov 2004
Location:
West Mids, England
Posts:
199
Plugin Contributions:
0

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

bumba000:

Anyone?

nosleephotel did ask you a question you have not answered!

Have you got a website we can look at too?

Craig

7 Oct 2008, 1:27 PM
#1227
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
856
Plugin Contributions:
0

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

Yes I installed it correctly. My site is in my sig.

Thank you,
John

8 Oct 2008, 8:51 AM
#1228
ces avatar

ces

Zen Follower

Join Date:
Nov 2004
Location:
West Mids, England
Posts:
199
Plugin Contributions:
0

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

Hi. I think nosleephotel was onto something:

Quote:
If my understanding is correct, csshover.htc and the additions to .htaccess is what makes it work with IE 6.

You do not seem to be using a seperate stylesheet for the header menu. I have looked at your main stylesheet.css and the header menu css is merged into it. However I cannot see :

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

Are you sure you have followed the instructions?

Craig

8 Oct 2008, 3:00 PM
#1229
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
856
Plugin Contributions:
0

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

I have added the styles from the header sheet to my sites main sheet. Could that be what's causing the problem?

EDIT

I guess so! I completely overlooked the " behavior: url(includes/csshover.htc);" in the body call. Thank you so much for that. It works now!

John

8 Oct 2008, 7:18 PM
#1230
garland68 avatar

garland68

New Zenner

Join Date:
Jun 2008
Posts:
6
Plugin Contributions:
0

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

Help! I just moved my site to another host and I am having a problem when I reinstalled the mod. It no longer displays the Home, Categories, Information... It only displays the sub-categories. Here is my site. http://www.garlandskinandbody.com/index.php?main_page=

Why would this be happening? Any help would be GREAT!!!

Thanks!

8 Oct 2008, 8:32 PM
#1231
garland68 avatar

garland68

New Zenner

Join Date:
Jun 2008
Posts:
6
Plugin Contributions:
0

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

garland68:

Help! I just moved my site to another host and I am having a problem when I reinstalled the mod. It no longer displays the Home, Categories, Information... It only displays the sub-categories. Here is my site. http://www.garlandskinandbody.com/index.php?main_page=

Why would this be happening? Any help would be GREAT!!!

Thanks!

Oh Never mind:-) I realized I grabbed Paul's version which is meant to only show sub cat's :-)

Thanks!!!

10 Oct 2008, 7:49 PM
#1232
nosleephotel avatar

nosleephotel

New Zenner

Join Date:
Sep 2008
Location:
Los Angeles, CA
Posts:
67
Plugin Contributions:
0

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

I need a little help positioning the dropdown menu. I want to have the whole menu right aligned (not the individual text in each menu item). Can someone help me with this?

13 Oct 2008, 9:06 AM
#1233
ces avatar

ces

Zen Follower

Join Date:
Nov 2004
Location:
West Mids, England
Posts:
199
Plugin Contributions:
0

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

nosleephotel:

I need a little help positioning the dropdown menu. I want to have the whole menu right aligned (not the individual text in each menu item). Can someone help me with this?

Try a:

float:right;

in the #dropMenuWrapper

You might have to play around with other settings after this.

Craig

14 Oct 2008, 6:03 PM
#1234
Join Date:
Jun 2008
Posts:
18
Plugin Contributions:
0

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

Hi, I am working on my zen cart site and I have searched the forums and no answer. I installed the css_horizontal_drop_down_menu_1-5
and I changed the CSS and content to what I wanted for my site, but it is not displaying properly in Internet Explorer 7. It works fine in Firefox and Safari. I am sure it is a CSS issue and I have tried to fix it to no avail. I did try to make the text smaller thinking it may why IE is pushing the content to two lines, nothing changed. I tried removing some of the links to see if there were too many and that was causing the issue, but it only looked worse in IE and worse in Firefox, which was strange. I keep reading in the forums that this add-on looks beautiful in IE. Does anyone have any advice?

The development site is live at http://www.divaliciouschocolate.com/dev/store/
It is about 75% complete and needing more CSS tweaking and images added so please remember it is a work in progress....

Mine is a new installation Zen Cart 1.3.8a
My website is currently only locally on my computer
Server OS: Windows NT DELL-024B1D4ABD 5.1 build 2600
Database: MySQL 5.0.51a
Database Host: localhost (127.0.0.1)
PHP Version: 5.2.5 (Zend: 2.2.0)
HTTP Server: Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color PHP/5.2.5

Thanks for your help and I look forward to hearing back from you

-- Jackie

15 Oct 2008, 1:11 AM
#1235
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!

Divalicious Chocolat:

Hi, I am working on my zen cart site and I have searched the forums and no answer. I installed the css_horizontal_drop_down_menu_1-5
and I changed the CSS and content to what I wanted for my site, but it is not displaying properly in Internet Explorer 7. It works fine in Firefox and Safari. I am sure it is a CSS issue and I have tried to fix it to no avail. I did try to make the text smaller thinking it may why IE is pushing the content to two lines, nothing changed. I tried removing some of the links to see if there were too many and that was causing the issue, but it only looked worse in IE and worse in Firefox, which was strange. I keep reading in the forums that this add-on looks beautiful in IE. Does anyone have any advice?

The development site is live at http://www.divaliciouschocolate.com/dev/store/
It is about 75% complete and needing more CSS tweaking and images added so please remember it is a work in progress....

Mine is a new installation Zen Cart 1.3.8a
My website is currently only locally on my computer
Server OS: Windows NT DELL-024B1D4ABD 5.1 build 2600
Database: MySQL 5.0.51a
Database Host: localhost (127.0.0.1)
PHP Version: 5.2.5 (Zend: 2.2.0)
HTTP Server: Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color PHP/5.2.5

Thanks for your help and I look forward to hearing back from you

-- Jackie
Hi There,

first of all, you have a ton of drop menu items... it may be difficult to fit them all.

Now notice, that this section in stylesheet_header_menu.css starts out looking like this:

div#dropMenu li {
	position:relative;
	list-style:none; 
	margin:0; 
	float:left; 
	line-height:1em;
	width:16.667%;
	*width:16.649%;
	}

This is designed for 6 drop down menu items across. Now that you've decided to make it 8 items across, you need to change that 16.667 and 16.649 to reflect your change. 100 / 6 = 16.667, 100 / 8 = 12.5. So your section above should look something like this (the *width:16.649 is for IE only, it needs to be a bit smaller to fit):

div#dropMenu li {
	position:relative;
	list-style:none; 
	margin:0; 
	float:left; 
	line-height:1em;
	width:12.5%;
	*width:12.25%;
	}

You can try adjusting the 12.25 to a slightly smaller number if it doesn't work.

You currently have this:

div#dropMenu li {
	position:relative;
	list-style:none; 
	margin:0; 
	float:left; 
	line-height:1em;
	width:auto;
	margin-right:2em;
	padding-left: .1em;
	*width:16.649%;
	}

Simply replace this with the chunk above.

16 Oct 2008, 12:09 PM
#1236
Join Date:
Jun 2008
Posts:
18
Plugin Contributions:
0

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

Thanks for getting back to me. I tried it and now the menu bar is displaying on two line in IE and Firefox.

I tried removing the extra drop down menu items and it didn't work any better in IE and I tried making the font smaller and that did fix it either.

When I changed width:auto for the IE hack as well that made it fit to one line although the text "shopping cart" is wrapping and making the bar taller. But that looks better already!

Thanks,

Jackie

16 Oct 2008, 12:26 PM
#1237
Join Date:
Jun 2008
Posts:
18
Plugin Contributions:
0

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

I played with the width and fixed it with this code:

div#dropMenu li {
position:relative;
list-style:none;
margin:0;
float:left;
line-height:1em;
width:auto;
margin-right:1.2em;
padding-left: .85em;
*padding-left: .45em;

}

Now I am having a problem with the drop down menus. The background color is not filling in the entire space. There is a weird clear gap to the right in IE and Firefox when the boxes drop and then a gap on the left on hover.

Any suggestions would be appreciated.

Cheers,

Jackie

16 Oct 2008, 11:12 PM
#1238
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!

Divalicious Chocolat:

I played with the width and fixed it with this code:

div#dropMenu li {
position:relative;
list-style:none;
margin:0;
float:left;
line-height:1em;
width:auto;
margin-right:1.2em;
padding-left: .85em;
*padding-left: .45em;

}

Now I am having a problem with the drop down menus. The background color is not filling in the entire space. There is a weird clear gap to the right in IE and Firefox when the boxes drop and then a gap on the left on hover.

Any suggestions would be appreciated.

Cheers,

Jackie
Did you not try the code I gave you?

17 Oct 2008, 2:35 PM
#1239
jgg1974 avatar

jgg1974

New Zenner

Join Date:
Apr 2008
Posts:
48
Plugin Contributions:
0

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

Hello, Love the hard work put into this mod for all of us !! Just wondering , and went through a lot of this post, but i must of missed this ..

Can you tell me how to change the home link? I would like when you click on home, it takes me to my original homepage and not the catalog home page. So in essence, I would like when someone clicks on home, it takes them to https://www.jygoods.com

Thanks a lot !!!! :D

18 Oct 2008, 4:14 PM
#1240
petronew avatar

petronew

New Zenner

Join Date:
May 2006
Posts:
7
Plugin Contributions:
0

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

I am really challenged by the Fly Out Menu. I need some help. As it is now, all the high level categories are veritically under 1 tab called categores.

What i need is help on taking this Addon Fly Out Menu and make it work so that each first level category is a separate menu tab.

Can anyone help me with this?

Thanks