Unwanted gap under navbar in IE6 for windows

This is a discussion on "Unwanted gap under navbar in IE6 for windows" within the Web Page Design section. This forum, and the thread "Unwanted gap under navbar in IE6 for windows are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Mar 5th, 2006, 08:27
New Member
Join Date: Mar 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Unwanted gap under navbar in IE6 for windows

I am developing the following site on a Mac and the navbar renders fine in Safari, Firefox etc, but not in IE6, according to screenshots I've seen through Browsershots. In IE6 the navbar has a gap at the bottom.

The test site (and html) can be viewed here:

http://homepage.mac.com/mischa4/troika2/index.html

If you don't have Safari thenI have attached a screenshot of what it should look like!


The relevant CSS is as follows:

Code: Select all
body {margin: 0; padding: 0; 
font-family: Trebuchet, Helvetica, Arial, sans-serif; 
line-height: 1.4em; 
font-size: 100%; 
text-align: center; 
background-color: #9e092f; 
} 

a:link { 
color: #9e092f; 
text-decoration: none; 
} 

a:visited { 
color: #9e092f; 
text-decoration: none; 
} 

a:hover { 
color: #9e092f; 
text-decoration: underline; 
} 

div#mainwrap { 
background-color: #9e092f; 
width: 650px; 
margin-left: auto; 
margin-right: auto; 
text-align: center; 
margin-top: 5px; 
} 

div#header { 
margin:0px; 
width: 650px; 
text-align: left; 
margin-bottom:5px; 
clear: both; 
float: left; 
background-color: #9e092f; 
} 

div#header img { 
border: none; 
margin-top: 0px; 
clear:both; 
float:left; 
} 

div#navbar { 
font-family: Helvetica, Arial; 
background-color: #000; 
border:none; 
width: 650px; 
float:left; 
padding-top:5px; 
margin-bottom:0px; 
text-align:center; 
} 

#navbar ul { 
margin-left:15px; 
padding:0; 
list-style:none; 
color: #dfdfdf; 
} 

#navbar li { 
float:left; 
margin:0; 
padding:0; 
width:102px; 
height:25px; 
background-image: url(images/tab_current.png); 
background-repeat: no-repeat; 
background-position: 102px 0px; 
background-color: #000000; 
} 

#navbar a{ 
display:block; 
padding-top: 3px; 
width:102px; 
height:25px; 
} 


#navbar a:link{ 
text-decoration: none; 
color: #dfdfdf; 
} 

#navbar a:visited{ 
text-decoration: none; 
color: #dfdfdf; 
} 
#navbar a:hover{ 
background-image: url(images/tab_current.png); 
background-repeat: no-repeat; 
background-position: 0px 0px; 
color: #000000; 
} 

#navbar #current { 
background-image: url(images/tab_current.png); 
background-repeat: no-repeat; 
background-position: 0px 0px; 
} 

#navbar #current a { 
color: #000000; 
} 

div#maincontent { 
padding:0px; 
float:left; 
text-align: left; 
margin-left: auto; 
margin-right:auto; 
margin-top:0px; 
margin-bottom: 0px; 
width: 648px; 
font-size: 95%; 
background-color: #dfdfdf; 
clear: both; 
border-left: 1px #000 solid; 
border-right: 1px #000 solid; 
} 

div#maincontent img { 
float:left; 
padding-top:0px; 
border: none; 
margin-top: 15px; 
margin-right: 15px; 
margin-left: 15px; 
margin-bottom: 0px; 
} 


h1 { 
margin-top:10px; 
padding-left: 10px; 
padding-top: 0px; 
font-size: 150%; 
} 

h2 { 
margin-top:10px; 
padding-left: 10px; 
margin-bottom: 0px; 
font-size: 125%; 
} 

html>body h1 { 
padding-left: 10px; 
margin-bottom: 0px; 
font-size: 125%; 
} 

p { 
padding-top: 0px; 
padding-left: 15px; 
padding-right:10px; 
} 

#maincontent ul { 
font-size: 90%; 
padding-left: 10px; 
margin-left:10px; 
font-family: Helvetica, Arial, sans-serif; 
line-height: 1.5em; 
list-style-position: inside; 
} 

/* 1st level of client list*/ 
#maincontent ul li { 
/*list-style-image: url(images/dot.gif); 
background-image: url(images/dot.gif); 
background-repeat: no-repeat; 
background-position: 0px 5px;*/ 
} 

/* second level of client list */ 
#maincontent ul li ul li { 
/*list-style-image: url(images/blankdot.gif); 
list-style: none;*/ 
list-style-type: circle; 
line-height: 1.2em; 
} 

#maincontent ul a:link { 
text-decoration: none; 
color: #9e092f; 
} 

#maincontent ul a:hover { 
font-size: inherit; 
color: #9e092f; 
text-decoration: underline; 
} 

#maincontent ul a:visited { 
font-size: inherit; 
color: #9e092f; 
text-decoration: none; 
} 

div#strapline { 
text-align: center; 
color: #ffffff; 
width: 650px; 
float: left; 
padding-top:8px; 
padding-bottom: 8px; 
background-color: #000; 
} 

div#strapline p { 
padding: 0px; 
font-size: 1.1em; 
margin-top: 5px; 
margin-bottom: 5px; 
} 
div#footer{ 
font-size: 75%; 
color: #000; 
font-weight: lighter; 
text-align: center; 
}

Thanks for your help.
Attached Images
File Type: gif safariview.gif (36.6 KB, 65 views)

Last edited by herkalees; Mar 5th, 2006 at 16:47.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Mar 5th, 2006, 11:08
Highly Reputable Member
Join Date: Aug 2005
Location: 3rd Branch Up, Old Oak.
Age: 48
Posts: 658
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Unwanted gap under navbar in IE6 for windows

I viewed it in IE6 and Maxthon (IE engine based browser) and it looked fine.
Maybe it's your viewer's browser that's at fault(?), or I've misunderstood your complaint.
http://i20.photobucket.com/albums/b2...ell/Troika.jpg
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Mar 5th, 2006, 11:39
New Member
Join Date: Mar 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Unwanted gap under navbar in IE6 for windows

Quote:
Originally Posted by RedSkwirrell
I viewed it in IE6 and Maxthon (IE engine based browser) and it looked fine.
Maybe it's your viewer's browser that's at fault(?), or I've misunderstood your complaint.
http://i20.photobucket.com/albums/b2...ell/Troika.jpg
You'll see from your snapshot that there is a gap or border under the 'home' tab.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Mar 5th, 2006, 13:46
Highly Reputable Member
Join Date: Aug 2005
Location: 3rd Branch Up, Old Oak.
Age: 48
Posts: 658
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Unwanted gap under navbar in IE6 for windows

Ahhh gotcha.
So the grey nav tabs should be joined to the rest of the grey page immediately below.
Is difficult to say what's at fault without knowing the names of the slices but I'm guessing it's a cell margin in the navbar table.
The margin responses are different in FF to those of IE.
The rest ur prolly not goin to like..... http://www.w3schools.com/css/css_margin.asp.
Good luck

p.s. You'd think this would be from one of the 'bottom margin' values, but it could just as easily be caused by a margin value from before this point compounding the expansion of the cell margin values beneath.
IE:- It could just as easily be one of the width values.

Last edited by Legacy_Staff; Mar 5th, 2006 at 13:50.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Mar 5th, 2006, 16:04
New Member
Join Date: Mar 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Unwanted gap under navbar in IE6 for windows

Thanks

you'll see from the CSS there are no tables, just a horizontal list. There are no margins set on the navbar except a left margin on the 'ul' div.

I'll fiddle with the width of the width of the 'li' div although that is set to the width of the tab graphic.

Incidentally, your screenshot does not shoe the non-current dark grey tabs, although these show up in IE6?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Mar 7th, 2006, 10:41
Highly Reputable Member
Join Date: Aug 2005
Location: 3rd Branch Up, Old Oak.
Age: 48
Posts: 658
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Unwanted gap under navbar in IE6 for windows

Quote:
Originally Posted by Treo
Incidentally, your screenshot does not shoe the non-current dark grey tabs, although these show up in IE6?
It was taken using IE6, but it appears the same in Maxthon as well on my system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Mar 7th, 2006, 12:36
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,189
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
Re: Unwanted gap under navbar in IE6 for windows

Here's a fix...

In your head section AFTER your styles are declared, insert the following code:-
HTML: Select all
<!--[if IE]>
  <style type="text/css" media="screen">
    DIV#maincontent {margin-top:-3px;}
  </style>
<![endif]-->
This uses an Internet Explorer Conditional comment and as such will issue a fix for IE only.
You need all the code above... even those comments.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Mar 7th, 2006, 15:06
New Member
Join Date: Mar 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Unwanted gap under navbar in IE6 for windows

This works perfectly. I have this problem up in four forums for over a week and you are the first to fix it!

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Mar 7th, 2006, 16:05
craig's Avatar
Reputable Member
Join Date: Sep 2005
Location: Preston, UK
Age: 21
Posts: 382
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Unwanted gap under navbar in IE6 for windows

Its still not fixed??? Have you uploaded the new files???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Mar 7th, 2006, 16:22
New Member
Join Date: Mar 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Unwanted gap under navbar in IE6 for windows

It is in the browsershot screenshot. Try http://www.troika.org.uk/index.html?
The question mark seems to clear the server cache.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Mar 7th, 2006, 16:42
craig's Avatar
Reputable Member
Join Date: Sep 2005
Location: Preston, UK
Age: 21
Posts: 382
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Unwanted gap under navbar in IE6 for windows

Sorry, it does work.
I was looking at the site you initially posted
http://homepage.mac.com/mischa4/troika2/index.html
Which isn't your new one.
It works well now, and i like the site, good job.
Craig
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Mar 7th, 2006, 22:40
Highly Reputable Member
Join Date: Aug 2005
Location: 3rd Branch Up, Old Oak.
Age: 48
Posts: 658
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Unwanted gap under navbar in IE6 for windows

I can see the darker grey tabs as well now, if that helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Mar 8th, 2006, 09:30
New Member
Join Date: Mar 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Unwanted gap under navbar in IE6 for windows

Yes it does. thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Mar 8th, 2006, 12:34
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,189
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
Re: Unwanted gap under navbar in IE6 for windows

just call me CSS-Wiz
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
unwanted, gap, under, navbar, ie6, windows

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
unwanted space between 2 images Craigj1303 Web Page Design 1 Apr 6th, 2008 12:04
unwanted horizontal scroll mykl Web Page Design 11 Sep 30th, 2007 02:05
unwanted space under image in IE Craigj1303 Web Page Design 2 Sep 5th, 2007 20:47
unwanted space between li elements in IE ant.eater Web Page Design 3 Nov 7th, 2005 13:14
help with navbar bruno89 Web Page Design 7 Aug 18th, 2005 01:01


All times are GMT. The time now is 20:56.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42