Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-05-2012, 03:52 PM   PM User | #1
johndove
Regular Coder

 
Join Date: Jul 2005
Posts: 102
Thanks: 30
Thanked 0 Times in 0 Posts
johndove is an unknown quantity at this point
Navbar display issues in IE

Hi,

Please see url http://testing.backstageweb.net/. In IE 9, looks fine.

In IE 8, navbar background is missing.

In IE 7, navbar background is missing and the logo is way off to the right.

??

Thanks,

John
johndove is offline   Reply With Quote
Old 12-05-2012, 04:41 PM   PM User | #2
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,817
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
Looks like at least part of the problem is here:

Code:
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
You're using HTML5 elements, which IE8 and under don't recognise. The js file here should sort that, but the src attribute is incomplete - missing http: at the start.

Correct that first and give it another go.
SB65 is offline   Reply With Quote
Old 12-05-2012, 04:47 PM   PM User | #3
johndove
Regular Coder

 
Join Date: Jul 2005
Posts: 102
Thanks: 30
Thanked 0 Times in 0 Posts
johndove is an unknown quantity at this point
SB,

That exact code is already in the header - ?
johndove is offline   Reply With Quote
Old 12-05-2012, 04:52 PM   PM User | #4
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,817
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
Yes, but the src attribute looked like it was missing the initial http:.
In fact, that's not the problem, as that URL does work. The problem lies here in nav.css:

Code:
.menu#nav-primary {
	background:url(../images/nav_bkgrnd.jpg)no-repeat;
	/*overflow:hidden;*/
	width:1000px;
	height:145px;
	margin:0;
	}
You'll see there's no space between the url and no-repeat. This is causing IE8 to fail parsing the background styling. Shove a space in there and give it another go.
SB65 is offline   Reply With Quote
Old 12-05-2012, 05:00 PM   PM User | #5
johndove
Regular Coder

 
Join Date: Jul 2005
Posts: 102
Thanks: 30
Thanked 0 Times in 0 Posts
johndove is an unknown quantity at this point
Sorry, I added "http:" at the start of the source, but didn't fix anything.
johndove is offline   Reply With Quote
Old 12-05-2012, 05:01 PM   PM User | #6
johndove
Regular Coder

 
Join Date: Jul 2005
Posts: 102
Thanks: 30
Thanked 0 Times in 0 Posts
johndove is an unknown quantity at this point
Okay, IE 8 looks good.

Logo is still off in IE 7.
johndove is offline   Reply With Quote
Old 12-05-2012, 05:03 PM   PM User | #7
johndove
Regular Coder

 
Join Date: Jul 2005
Posts: 102
Thanks: 30
Thanked 0 Times in 0 Posts
johndove is an unknown quantity at this point
I see the problem is with the text align...
johndove is offline   Reply With Quote
Old 12-05-2012, 05:06 PM   PM User | #8
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,817
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
Yes, have a try adding:

Code:
#logo{text-align:left}
to your css.
SB65 is offline   Reply With Quote
Users who have thanked SB65 for this post:
johndove (12-05-2012)
Old 12-05-2012, 05:20 PM   PM User | #9
johndove
Regular Coder

 
Join Date: Jul 2005
Posts: 102
Thanks: 30
Thanked 0 Times in 0 Posts
johndove is an unknown quantity at this point
text-align:left works for IE, but screws it up in other browsers. Absolute positioning works.

Code:
#logo a {
    background: url("../images/logo.jpg") no-repeat scroll 0 0 transparent;
    display: block;
	width: 380px;
	height: 67px;
	left:434px;
	top:82px;
    position: absolute;
    text-indent: -999em;
	z-index:100;
}
johndove is offline   Reply With Quote
Old 12-05-2012, 05:21 PM   PM User | #10
johndove
Regular Coder

 
Join Date: Jul 2005
Posts: 102
Thanks: 30
Thanked 0 Times in 0 Posts
johndove is an unknown quantity at this point
Thanks very much for your assistance!
johndove is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 12:29 PM.


Advertisement
Log in to turn off these ads.