As usual everything looks great in Opera and FF. I test my page in IE, and hell is unleashed.
A giant space on the right side of the screen appears and this is shoving my anchors all the way with it. Everything else stays within the wrapper division and doesn't even move a pixel.
~XHTML~
[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Faded Twilight : Home
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet " type="text/css" href="Styles/style-main.css" />
</head>
<body>
<div id="tgnav">
<a href="#">Home |
<a href="#">Games |
<a href="#">IRC |
<a href="#">Downlo ads |
<a href="#">Admini stration
</div>
<div id="wrapper">
<div id="top">
<img src="Styles/Images/Logo6.png" alt="Faded Twilight" id="logo" />
<div id="navagation" >
<a href="#">Home
<a href="#">Forums
<a href="#">Chat
<a href="#">Downlo ads
<a href="#">Update s
</div>
</div>
<div id="contents">
<div id="login">
</div>
</div>
</div>
</body>
</html>[/HTML]
~CSS~
[CODE=css]* {
margin:0;
padding:0;
}
body {
background-color:#000;
background-image: url('Images/main-background.jpg' );
font-size:small;
margin-top:30px;
margin-bottom:30px;
}
div#tgnav {
width:100%;
text-align:center;
position:absolu te;
top:5px;
color:#E00000;
}
div#tgnav a {
color:#FFF;
font-size:16px;
}
div#wrapper {
width:600px;
margin:0 auto;
overflow:auto;
background-image: url('Images/Background2.png ');
}
div#wrapper div#top {
width:600px;
height:auto;
}
div#wrapper div#top img#logo {
vertical-align:bottom;
}
div#wrapper div#top div#navagation {
width:600px;
height:auto;
text-align:center;
position:absolu te;
top:154px;
padding-top:0.3em;
padding-bottom:0.3em;
}
div#wrapper div#top div#navagation ul {
width:600px;
list-style-type:none;
position:absolu te;
top:154px;
padding-top:0.3em;
padding-bottom:0.3em;
}
div#wrapper div#top div#navagation li {
display:inline;
}
div#wrapper div#top div#navagation a {
text-decoration:none ;
padding:0.2em 0.8em;
font-size:15px;
color:#800080;
border:1px solid #FFF;
}
div#wrapper div#contents {
width:600px;
height:500px;
}[/CODE]
I can't figure out what is happening. Everything has a set width that matches the containers width so nothing should be leaving it. Then again the navagation division is absolutely positioned completely removing it from the normal flow of the page, but that shouldn't cause this?
Thanks, Death
A giant space on the right side of the screen appears and this is shoving my anchors all the way with it. Everything else stays within the wrapper division and doesn't even move a pixel.
~XHTML~
[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Faded Twilight : Home
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet " type="text/css" href="Styles/style-main.css" />
</head>
<body>
<div id="tgnav">
<a href="#">Home |
<a href="#">Games |
<a href="#">IRC |
<a href="#">Downlo ads |
<a href="#">Admini stration
</div>
<div id="wrapper">
<div id="top">
<img src="Styles/Images/Logo6.png" alt="Faded Twilight" id="logo" />
<div id="navagation" >
<a href="#">Home
<a href="#">Forums
<a href="#">Chat
<a href="#">Downlo ads
<a href="#">Update s
</div>
</div>
<div id="contents">
<div id="login">
</div>
</div>
</div>
</body>
</html>[/HTML]
~CSS~
[CODE=css]* {
margin:0;
padding:0;
}
body {
background-color:#000;
background-image: url('Images/main-background.jpg' );
font-size:small;
margin-top:30px;
margin-bottom:30px;
}
div#tgnav {
width:100%;
text-align:center;
position:absolu te;
top:5px;
color:#E00000;
}
div#tgnav a {
color:#FFF;
font-size:16px;
}
div#wrapper {
width:600px;
margin:0 auto;
overflow:auto;
background-image: url('Images/Background2.png ');
}
div#wrapper div#top {
width:600px;
height:auto;
}
div#wrapper div#top img#logo {
vertical-align:bottom;
}
div#wrapper div#top div#navagation {
width:600px;
height:auto;
text-align:center;
position:absolu te;
top:154px;
padding-top:0.3em;
padding-bottom:0.3em;
}
div#wrapper div#top div#navagation ul {
width:600px;
list-style-type:none;
position:absolu te;
top:154px;
padding-top:0.3em;
padding-bottom:0.3em;
}
div#wrapper div#top div#navagation li {
display:inline;
}
div#wrapper div#top div#navagation a {
text-decoration:none ;
padding:0.2em 0.8em;
font-size:15px;
color:#800080;
border:1px solid #FFF;
}
div#wrapper div#contents {
width:600px;
height:500px;
}[/CODE]
I can't figure out what is happening. Everything has a set width that matches the containers width so nothing should be leaving it. Then again the navagation division is absolutely positioned completely removing it from the normal flow of the page, but that shouldn't cause this?
Thanks, Death
Comment