Site Reference Forums

You are not logged in.

#1 2007-12-16 16:44:33

graecille
Member
From: New Zealand
Registered: 2006-10-25
Posts: 24
I've been thanked 0 times.

Thank me Website

Menu displaying differently in Firefox to IE

Greetings all,

I am having a little trouble with a menu in a site I rebuilt. It was an old framed site and I have used all old images (because they were quite good & the owner wanted it kept looking the same) including around the menu area. My problem is that in IE, there are little green lines between each menu item (which look good) but on the top two menu items, because of the curvature of the image, the lines run on through, which the owner has just asked me if I can remove. In Firefox and opera, the green lines (which actually are the background colour showing thru) are not there.

I thought it may be somewhere in the #pageNav area in the CSS file, but I can't work it out.

Can some of you web Gurus out there please have a look and advise me what to do. kapitulation

Oh, nearly for got. The site is http://www.bendles.com.au

Thanks.

Offline

 

#2 2007-12-16 19:46:39

ColoEagle
Administrator
From: Colorado, USA
Registered: 2006-02-15
Posts: 2111
I've been thanked 83 times.

Thank me Website
Buy me candy

Re: Menu displaying differently in Firefox to IE

IE funny stuff here.

A friendly FYI - looking at your CSS there is some stuff in there that needs to be cleaned up.

Without redoing the navigation completely, just working with what you have;
Add the following conditional statement to the head section of the pages telling IE to give a negative 3px margin to the bottom of the images.

Code: html

<!--[if lte IE 7]>
<style type="text/css" media="screen">
#sectionLinks img {margin-bottom:-3px;}
</style>
<![endif]-->

Balance out the image heights to 18px making them the same with the exception of the home image. Leave this one at 22px. This will maintain the spacing in relationship to the wine bottle image.

To bring this wine bottle image up to the bottom of the nav links remove the br tag just above this image.

Since you have declared and coded HTML 4.01 remove the XHTML closing in the verify meta tag. This will allow the page to validate and remove the possibility of the browser going into quirks mode.


The only way to discover the limits of the possible is to go beyond them into the impossible
Attention designers and webmasters - "The Beauty of CSS"
Valid Web Designs tutorials on HTML, XHTML and CSS
Home Security Systems

Offline

 

#3 2007-12-16 22:38:37

graecille
Member
From: New Zealand
Registered: 2006-10-25
Posts: 24
I've been thanked 0 times.

Thank me Website

Re: Menu displaying differently in Firefox to IE

ColoEagle wrote:

IE funny stuff here.

A friendly FYI - looking at your CSS there is some stuff in there that needs to be cleaned up.

Without redoing the navigation completely, just working with what you have;
Add the following conditional statement to the head section of the pages telling IE to give a negative 3px margin to the bottom of the images.

Code: html

<!--[if lte IE 7]>
<style type="text/css" media="screen">
#sectionLinks img {margin-bottom:-3px;}
</style>
<![endif]-->

Balance out the image heights to 18px making them the same with the exception of the home image. Leave this one at 22px. This will maintain the spacing in relationship to the wine bottle image.

To bring this wine bottle image up to the bottom of the nav links remove the br tag just above this image.

Since you have declared and coded HTML 4.01 remove the XHTML closing in the verify meta tag. This will allow the page to validate and remove the possibility of the browser going into quirks mode.

Thanks ColoEagle, glad

That pretty much sussed it. I did however try #sectionLinks img {margin-bottom:-1px;
}  in the CSS file, but it didn't appear to work. Just thought I would try it instead of adding it to the head of every page.

You will note I reduced the margin-bottom:-3px down to -2px, then -1px as the top images were distorting the curvature of the top of the menu. Anyway, it worked at -1px, so left it there.

You mention about cleaning some stuff up in the CSS file - anything in particular?

Anyway, thanks once again for the above advise.

Cheers,
Graeme

Offline

 

#4 2007-12-17 17:14:51

ColoEagle
Administrator
From: Colorado, USA
Registered: 2006-02-15
Posts: 2111
I've been thanked 83 times.

Thank me Website
Buy me candy

Re: Menu displaying differently in Firefox to IE

Your welcome, glad I could help.

graecille wrote:

You mention about cleaning some stuff up in the CSS file - anything in particular?

Just a few minor things really.

Code: css

body{
    font-family: Verdana, Arial, Helvetica, sans-serif;
    color: #003300;
    font-size: small;
    text-align: justify;
    line-height: 1.166;   
    margin: 0px;
    padding: 0px;
    background: images/h_tile.jpg;
    }
body {
    background-color: #cad7b9;
}

These two can be listed all in one. With the first one you have the background image mis-coded.

You have several duplicated font family declarations.
In the body you have already declared Verdana, Arial, Helvetica, sans-serif  Duplication (such as all the h tags) is not needed unless you change the family for a specific element/purpose.

One more point, you are using different font size settings - px, large, small, %. Would be better if you use just one throughout the css. Makes it easier to make adjustments and understand the settings.


The only way to discover the limits of the possible is to go beyond them into the impossible
Attention designers and webmasters - "The Beauty of CSS"
Valid Web Designs tutorials on HTML, XHTML and CSS
Home Security Systems

Offline

 

#5 2007-12-20 16:17:34

graecille
Member
From: New Zealand
Registered: 2006-10-25
Posts: 24
I've been thanked 0 times.

Thank me Website

Re: Menu displaying differently in Firefox to IE

ColoEagle wrote:

Your welcome, glad I could help.

graecille wrote:

You mention about cleaning some stuff up in the CSS file - anything in particular?

Just a few minor things really.

Code: css

body{
    font-family: Verdana, Arial, Helvetica, sans-serif;
    color: #003300;
    font-size: small;
    text-align: justify;
    line-height: 1.166;   
    margin: 0px;
    padding: 0px;
    background: images/h_tile.jpg;
    }
body {
    background-color: #cad7b9;
}

These two can be listed all in one. With the first one you have the background image mis-coded.

You have several duplicated font family declarations.
In the body you have already declared Verdana, Arial, Helvetica, sans-serif  Duplication (such as all the h tags) is not needed unless you change the family for a specific element/purpose.

One more point, you are using different font size settings - px, large, small, %. Would be better if you use just one throughout the css. Makes it easier to make adjustments and understand the settings.

Thanks again Colo, I will get onto it.

Cheers  .storstark

Offline

 

#6 2007-12-21 08:30:56

Ryan_steyn
Member
From: South Africa, Port Elizabeth
Registered: 2006-08-23
Posts: 1673
I've been thanked 26 times.

Thank me Website

Re: Menu displaying differently in Firefox to IE

Ahoy, i had the same problem and even though ce seems to have sorted you out i figured i would throw my 2cents in anyway big_smile

For my external stylesheet i work with this format and it seems to sort out all my ie6 and ff oddities.

Code: css

#content {
position:absolute;
width:545px;
height:675px;
margin-top:400px;
margin-left:163px;
padding:10px;
border-style:;
overflow:auto;
z-index:1;
}

/* IE6 Only */
* html #content {
width:550px;;
height:675px;
margin-top:400px;
margin-left:162px;
}

Lalibela Game Reserve in malaria free South Africa

"Humans are by far the most fascinating creatures, in a universe with no boundaries and a world with so much unfound wonder we are the only entities capable of creating boredom"

Offline

 
Never
Sponsored Results


Board footer

Powered by PunBB
© Copyright 2002–2008 Rickard Andersson