Forums / Templates, Stylesheets, Page Layout / Extra Nav Bar That I don't Want - Help Please

Extra Nav Bar That I don't Want - Help Please

Locked

Views: 1,531

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
8 May 2009, 5:45 PM
#1
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Extra Nav Bar That I don't Want - Help Please

I have a problem that only seems to show in IE, for some reason there's an extra main nav bar above the original one but can't seem to work out why.

Does anyone know why it's there?

https://www.dpmperformance.co.uk

8 May 2009, 7:29 PM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Extra Nav Bar That I don't Want - Help Please

DPM:

I have a problem that only seems to show in IE, for some reason there's an extra main nav bar above the original one but can't seem to work out why.

Does anyone know why it's there?

https://www.dpmperformance.co.uk

You have an empty table in your layout.

FF doesn't show the empty table but IE does.

This is from the view source of your site: The highlighted portion is the empty table.

<div id="mainWrapper"> <table width="100%" height="12px"> <tr> <td> </td> </tr> </table> <img src="images/scrollspace.gif" height="1" width="4"> <a href="http://www.dpmperformance.co.uk/"><img src="images/DPM2.jpg" alt="DPM Performance - 01207 561606" height="117" width="908"> <br> <table width="100%" height="10px"> <tr> <td> </td> </tr> </table> <!--bof-header logo and navigation display--> <!--[if IE]> <link href="includes/templates/future_zen/css_ie/style_ie.css" rel="stylesheet" type="text/css"> <![endif]--> <div id="headerWrapper">

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

8 May 2009, 7:39 PM
#3
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Re: Extra Nav Bar That I don't Want - Help Please

Thank you so much, is that from my CSS Stylesheet?

8 May 2009, 7:49 PM
#4
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Re: Extra Nav Bar That I don't Want - Help Please

I've tried that and it just takes away the white gap which I want to keep, it's th actual blue bar above the nav bar that I want rid of. It's the one that seems to be linked to take you back to the homepage...

It only seems to happen in IE8.

8 May 2009, 11:55 PM
#5
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Extra Nav Bar That I don't Want - Help Please

DPM:

I've tried that and it just takes away the white gap which I want to keep, it's th actual blue bar above the nav bar that I want rid of. It's the one that seems to be linked to take you back to the homepage...

It only seems to happen in IE8.

It could have something to do with the conditional call to an ie stylesheet.

<br> <table width="100%" height="10px"> <tr> <td> </td> </tr> </table> <!--bof-header logo and navigation display--> <!--[if IE]> <link href="includes/templates/future_zen/css_ie/style_ie.css" rel="stylesheet" type="text/css"> <![endif]-->

And something in that stylesheet is inserting the extra bar.

I'd put that conditional statement in the head section of the page and not in the body of the main display.
There is a contribution in the downloads section that does this. (I'm not sure of the name though)

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

9 May 2009, 8:26 AM
#6
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Re: Extra Nav Bar That I don't Want - Help Please

That statement is in the header, should I remove it?

Is it a bad idea to have a different stylesheet for IE and FF?

Does it make the site slower?

9 May 2009, 4:52 PM
#7
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Extra Nav Bar That I don't Want - Help Please

DPM:

That statement is in the header, should I remove it?

Is it a bad idea to have a different stylesheet for IE and FF?

Does it make the site slower?

You should only need to use stylesheet.css (for FF)

The stylesheet for IE should only contain information that affects the display in IE.

You don't need 3 complete stylesheets.

If I remember correctly you have stylesheet.css, stylesheet_moz.css and stylesheet_ie.css and they all contain the same information which causes conflicts.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

26 Jun 2009, 2:17 PM
#8
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Re: Extra Nav Bar That I don't Want - Help Please

That's what I thought. Do I just delete the stylesheet_moz.css?