neterhet
11-19-2010, 11:16 PM
Hello,
I'm new to the forum... I came here because I need some help with finding out why my code isn't rendering correctly in IE 6 0r 7.
It renders correctly in every other browser I have tested it in. (Mac and Windows)
in IE7: The div named "nav" does not "float left" for some reason. other than that it renders fine.
in IE6: The div named "nav" does not stay fixed.. although it does float left unlike in IE7. The div named "main" does not align to the top of the page.
What info do I need to tell these browsers for them to render the site correctly? The site renders fine in IE8 and all other versions of chrome, firefox and safari.
Any help is appreciated. thanks.
the link to the "page".
http://www.neterhet.com/test/hscroller/
and my frankencss.
@charset "UTF-8";
/* CSS Document */
body, div, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, img, form, fieldset, blockquote {
margin: 0; padding: 0; border: 0;
}
body {
background: #000000;
font-family: Arial, sans-serif; color: #339966; line-height: 24px;
}
a {
color: #339966; text-decoration: none;
}
a:hover {
color: #669999;
}
#wrapper {
padding: 22px 0 0 0;
float: left;
width: 100%;
}
#container {
width: 100%; margin: 0 auto; overflow: hidden;
}
#nav {
position: fixed; width: 280px; float: left; text-align: right;
}
#nav h1 a {
display: block; width: 160px; height: 163px; margin: 27px 0px 31px 63px;
background: url(http://neterhet.com/uploads/neterlogo_litebrite_grn.jpg) 0 0 no-repeat; text-indent: 9999px;
}
#nav ul {
margin: 0 60px 40px 0; list-style: none;
}
#nav ul li a {
font-size: 24px; line-height: 48px;
}
#nav h2 {
font-size: 16px; font-weight: normal; text-transform: uppercase; letter-spacing: 3px;
margin: 0 60px 9px 0;
}
#main {
width: 600px; float: left; padding: 16px 0 0 300px;
background: #000000;
}
.post {
margin: 0 0 0 0;
}
#footer {
clear: both; overflow: hidden; padding: 5px 0 40px 0;
}
#footer p#back-top {
float: left; font-size: 12px;
}
/* Alignment Stuff */
.centered {
display: block;
margin-left: auto;
margin-right: auto;
}
.alignright {
float: right;
margin-left: 15px;
}
.alignleft {
float: left;
margin-right: 15px;
}
I'm new to the forum... I came here because I need some help with finding out why my code isn't rendering correctly in IE 6 0r 7.
It renders correctly in every other browser I have tested it in. (Mac and Windows)
in IE7: The div named "nav" does not "float left" for some reason. other than that it renders fine.
in IE6: The div named "nav" does not stay fixed.. although it does float left unlike in IE7. The div named "main" does not align to the top of the page.
What info do I need to tell these browsers for them to render the site correctly? The site renders fine in IE8 and all other versions of chrome, firefox and safari.
Any help is appreciated. thanks.
the link to the "page".
http://www.neterhet.com/test/hscroller/
and my frankencss.
@charset "UTF-8";
/* CSS Document */
body, div, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, img, form, fieldset, blockquote {
margin: 0; padding: 0; border: 0;
}
body {
background: #000000;
font-family: Arial, sans-serif; color: #339966; line-height: 24px;
}
a {
color: #339966; text-decoration: none;
}
a:hover {
color: #669999;
}
#wrapper {
padding: 22px 0 0 0;
float: left;
width: 100%;
}
#container {
width: 100%; margin: 0 auto; overflow: hidden;
}
#nav {
position: fixed; width: 280px; float: left; text-align: right;
}
#nav h1 a {
display: block; width: 160px; height: 163px; margin: 27px 0px 31px 63px;
background: url(http://neterhet.com/uploads/neterlogo_litebrite_grn.jpg) 0 0 no-repeat; text-indent: 9999px;
}
#nav ul {
margin: 0 60px 40px 0; list-style: none;
}
#nav ul li a {
font-size: 24px; line-height: 48px;
}
#nav h2 {
font-size: 16px; font-weight: normal; text-transform: uppercase; letter-spacing: 3px;
margin: 0 60px 9px 0;
}
#main {
width: 600px; float: left; padding: 16px 0 0 300px;
background: #000000;
}
.post {
margin: 0 0 0 0;
}
#footer {
clear: both; overflow: hidden; padding: 5px 0 40px 0;
}
#footer p#back-top {
float: left; font-size: 12px;
}
/* Alignment Stuff */
.centered {
display: block;
margin-left: auto;
margin-right: auto;
}
.alignright {
float: right;
margin-left: 15px;
}
.alignleft {
float: left;
margin-right: 15px;
}