Random Black bar?
Permalink
I am new to the forums so i am sorry if this is in the wrong spot but I have been working on this website for a while in Firefox. As soon as i went to check it in IE and i got this random bar. If anyone could help me figure it out that would be really great. Here is the website urlhttp://www.keweenawrepairs.com
www.keweenawrepairs.com
Bits in the wrong place.
<div id="body">
Put all this content inside head tag.
<div id="concretewrapper">
#body {
float:center, no such thing.
Use:
#body {width:800px;
margin:0 auto}
<div id="body">
Put all this content inside head tag.
<div id="concretewrapper">
#body {
float:center, no such thing.
Use:
#body {width:800px;
margin:0 auto}
OK, my feedback on this:
Viewed in Chrome:
- Page is centered
- Black area behind navigation
Viewed in IE:
- Page is left-aligned
- Black area behind navigation
- Last navigation element breaks out of the line
Is that black area behind the navigation, the one you're referring to? If so, it's a minor CSS tweak, if not... let me know what the problem is
Viewed in Chrome:
- Page is centered
- Black area behind navigation
Viewed in IE:
- Page is left-aligned
- Black area behind navigation
- Last navigation element breaks out of the line
Is that black area behind the navigation, the one you're referring to? If so, it's a minor CSS tweak, if not... let me know what the problem is
yes i am referring to the black bar behind the navigation and the fact that the last link breaks out of line with the rest of them, but it does not do this is in Firefox. Only in Internet explorer, and others.
In your style.css try to change
to
Clear C5 cache and your browser cache and see if that changes anything.
.menu ul li a { background-color:#333333; color:white; float:left; padding-bottom:10.5px; padding-left:0; padding-right:0; padding-top:10.5px; text-decoration:none; width:160px; }
to
.menu ul li a { background-color:#333333; color:white; float:left; padding-bottom:10.5px; padding-left:0; padding-right:0; padding-top:10.5px; text-decoration:none; width:158px; }
Clear C5 cache and your browser cache and see if that changes anything.
Didn't fix the problem just made the nav bar smaller. It still wraps around
Solved the problem by declaring a doc type with this code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
It also fixed the centering issue with IE, Thanks a lot for all of your help!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
It also fixed the centering issue with IE, Thanks a lot for all of your help!
Glad to know you found a fix... =)