/    Sign up×
Community /Pin to ProfileBookmark

Help with site in IE

so I have a final site that isn’t working in IE. The test site worked in IE, and I can’t figure out why the final isn’t.

Final
[url]http://www.prisonmuseum.net[/url]

Test
[url]http://www.lisakruczek.com/prison/navtest.html[/url]

The only difference between them is I added a longer name in one of the tabs on the navbar. The original was “Events” the final is “Exhibits & Events”. I changed the padding in the css so the navbar would fit the longer name. So the only difference is in the

padding-left

in the styling

and the width of the bar on the bottom , but it’s only the difference of 50 or so pixels, the final site is way off, like something is justified wrong. It’s all the same otherwise. Anyone have any ideas? Here’s the css of the final site, where it’s showing up wrong

#nav {
font-family: Arial, Helvetica, sans-serif;
text-align: center;

}

/* the styling */
#nav {width:600px; height:20px; background:#666699; position:relative; padding-left:108px;}

#nav .select, #nav .current {margin:0; padding:0; list-style:none;}

#nav li {display:inline; margin:0; padding:0; height:auto;}

#nav .select a,
#nav .current a {
display:block;
height:20px;
float:left;
background:#666699;
padding:0 10px 0 10px;
text-decoration:none;
font-size:14px;
line-height:20px;
white-space:nowrap;
color:#fff;
font family: arial, helvetica;
font-style: normal;
}
* html #nav .select a, * html #nav .current a {width:1px; height:20px;}

#nav .select a:hover,
#nav .select li:hover a {
background:#333366;
cursor:pointer;
color:#FFF;
}

#nav .sub {display:none;}

/* for IE5.5 and IE6 only */
#nav table {position:absolute; border-collapse:collapse; left:0; top:0;}

#nav .current a {background:#333366; color:#FFF;}

#nav .sub li a:hover,
#nav .select a:hover .sub li a:hover,
#nav .select li:hover .sub li a:hover {
background:#333366;
color:#FFFFFF;
text-decoration: underline;
}

#nav .sub_active .current_sub a,
#nav .sub_active a:hover {background:#333366; color:#FFF;text-decoration: underline; }

#nav .select li a:hover .sub,
#nav .select li:hover .sub {display:block; position:absolute; width:580px; top:20px; left-margin:auto; right-margin:auto; background:#333366; margin-top:0; padding:0; z-index:50; color:#fff; font-size:12px;}

#nav .sub, #nav .sub_active {margin:0; padding:0; list-style:none; }

#nav .sub_active {display:block; position:absolute; width:580px; top:20px; left-margin:auto; right-margin:auto; background:#333366; margin-top:0; padding:0; z-index:10;}
* html #nav .sub_active, * html #nav .select a:hover.sub {z-index:0; margin-top:0; margin-top:1px;}

#nav .sub_active a {height:20px; text-decoration:none; line-height:20px; white-space:nowrap; display:block; background:#333366; padding:5px 10px 10px 10px; margin:0; font-size:12px; white-space:nowrap; border:0; color:#fff;}

#nav .select a:hover .sub li a,
#nav .select li:hover .sub li a {display:block; background:#333366; padding:5px 10px 10px 10px; margin:0; white-space:nowrap; border:0; color:#fff; font-size:12px;}

to post a comment
CSS

9 Comments(s)

Copy linkTweet thisAlerts:
@downtimeNov 16.2010 — The main difference I see on my smaller test monitor is that the live site has a scroll bar and the test one does not, so the live site seems to jump to left (pushed by the scroll bar). There's also a difference between the Key images, on the test site they're smaller than on the live site, although the actual image dimensions are the same.
Copy linkTweet thisAlerts:
@lkruczekauthorNov 16.2010 — You mean the vertical scrollbar? I think that's only on certain pages, and that wouldn't effect the navbar would it?
Copy linkTweet thisAlerts:
@WebWarriorNov 16.2010 — The simple solution would be to move the sub nav left the same amount of pixels as your padding-left (i.e. 108px in your case).
[CODE]
#nav .select li a:hover .sub,
#nav .select li:hover .sub {display:block; position:absolute; width:580px; top:20px; left: 108px;
left-margin:auto; right-margin:auto;
background:#333366; margin-top:0; padding:0;
z-index:50; color:#fff; font-size:12px;}
[/CODE]


Also, off topic, but you might want to fix this part (note the in the margin-top: 1px).

* html #nav .sub_active, * html #nav .select a:hover.sub {z-index:0; margin-top:0; margin-top:1px;}

and use &amp (escaped HTML) instead of & character in your HTML.
Copy linkTweet thisAlerts:
@lkruczekauthorNov 16.2010 — Thanks Webwarrior-

But won't changing the padding effect the site in other browsers? I'll still try it.
Copy linkTweet thisAlerts:
@WebWarriorNov 16.2010 — Looked fine in FireFox too.

Please note that I didn't say to remove the original padding you added. Everything is the same, the only exception was the left positioning (left: 108px; ) that I added.
Copy linkTweet thisAlerts:
@lkruczekauthorNov 16.2010 — Well, the bar is flushed properly, but the navbar isn't working correctly. I don't know what's changed from the test site to this one.
Copy linkTweet thisAlerts:
@lkruczekauthorNov 17.2010 — This is weird too. If I copy an html file and the css from the test site, that works to the new hosting service, it still doesn't work. Can the hosting service effect your files? For example, I put the about.html file and the css file from the test site

http://www.lisakruczek.com/prison/about.html

in the new service ftp. When I go to the site

http://www.prisonmuseum.net/about.html

the navbar is still funky. What is that about? Shouldn't it match the test site for that page?
Copy linkTweet thisAlerts:
@lkruczekauthorNov 17.2010 — Scratch that last post, my IE browser was set wrong, it's wrong in my test site too. Anyone else have any ideas, I can't seem to figure out this problem!
Copy linkTweet thisAlerts:
@WebWarriorNov 17.2010 — The http://www.prisonmuseum.net/about.html site looks fine in IE7 & IE 8, I am not sure what other problems you are referring to, since I only tried to help with the original one.

You might need to refresh the page in your browser.

The test site's CSS doesn't use the fixes I suggested.
×

Success!

Help @lkruczek spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...