halotree
24th September 06, 10:02 AM
Hi all,
My first question here, if ive done something wrong please tell me. OK, I am coding this template that the entire site needs to be centered, but even though, links are correct and CSS + xhtml is correct ( in my view) it isnt displaying. Below is the CSS + XHTML, can you point out what ive done wrong?
-Thanks HaloT
body {
margin: 0px;
background: url(img/bg.jpg);
font-family: Lucida Sans Unicode;
}
#container {
width: 881px;
background-color: #fff;
border-right: 1px #deddc2 solid;
border-left: 1px #deddc2 solid;
margin: 0px;
}
#blue {
width: 850px;
height: 40px;
background: url(img/blue.jpg);
}
#header {
background: url(img/header.jpg);
width: 850px;
height: 123px;
}
#navigation {
width: 820px;
height: 26px;
background: url(img/navigation.jpg);
color: #fff;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-align: left;
font-size: 14px;
padding-top: 8px;
padding-left: 30px;
}
#navigation a {
margin-right: 10px;
color: #fff;
text-decoration: none;
background-position: top;
padding: 8px 12px 9px 12px;
}
#navigation a:hover {
background: url(img/hover.jpg);
background-position: bottom;
}
#dots {
width: 850px;
height: 1px;
background: url(img/dots.jpg);
margin-top: 4px;
}
#mainback {
width: 880px;
height: 900px;
background: url(img/mainback.jpg);
margin-top: 0px;
}
#lart {
width: 138px;
height: 16px;
background: url(img/lart.jpg);
left: 10px;
top: 200px;
}
#bbar {
width: 881px;
height: 34px;
margin-top: 250px;
margin-left: 200px;
}
HTML:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<link href="style.css" rel="stylesheet" type="text/css"></head><body>
<div align="center">
<div id="container">
<div id="blue"></div>
<div id="header"></div>
<div id="navigation">
<a href="#">Home</a>
<a href="#">Om</a>
<a href="#">Siden</a>
<a href="#">Link 1</a>
<a href="#">Link 2</a>
<a href="#">Forums</a>
</div>
<div id="dots"></div>
<div id="mainback"></div>
<div id="lart"></div>
<div id="rm"></div>
<div id="bbar">
<img id="bbar" src="img/bbar.jpg" width="881" height="34" alt=""/></div>
</div>
</div>
</body></html>
My first question here, if ive done something wrong please tell me. OK, I am coding this template that the entire site needs to be centered, but even though, links are correct and CSS + xhtml is correct ( in my view) it isnt displaying. Below is the CSS + XHTML, can you point out what ive done wrong?
-Thanks HaloT
body {
margin: 0px;
background: url(img/bg.jpg);
font-family: Lucida Sans Unicode;
}
#container {
width: 881px;
background-color: #fff;
border-right: 1px #deddc2 solid;
border-left: 1px #deddc2 solid;
margin: 0px;
}
#blue {
width: 850px;
height: 40px;
background: url(img/blue.jpg);
}
#header {
background: url(img/header.jpg);
width: 850px;
height: 123px;
}
#navigation {
width: 820px;
height: 26px;
background: url(img/navigation.jpg);
color: #fff;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-align: left;
font-size: 14px;
padding-top: 8px;
padding-left: 30px;
}
#navigation a {
margin-right: 10px;
color: #fff;
text-decoration: none;
background-position: top;
padding: 8px 12px 9px 12px;
}
#navigation a:hover {
background: url(img/hover.jpg);
background-position: bottom;
}
#dots {
width: 850px;
height: 1px;
background: url(img/dots.jpg);
margin-top: 4px;
}
#mainback {
width: 880px;
height: 900px;
background: url(img/mainback.jpg);
margin-top: 0px;
}
#lart {
width: 138px;
height: 16px;
background: url(img/lart.jpg);
left: 10px;
top: 200px;
}
#bbar {
width: 881px;
height: 34px;
margin-top: 250px;
margin-left: 200px;
}
HTML:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<link href="style.css" rel="stylesheet" type="text/css"></head><body>
<div align="center">
<div id="container">
<div id="blue"></div>
<div id="header"></div>
<div id="navigation">
<a href="#">Home</a>
<a href="#">Om</a>
<a href="#">Siden</a>
<a href="#">Link 1</a>
<a href="#">Link 2</a>
<a href="#">Forums</a>
</div>
<div id="dots"></div>
<div id="mainback"></div>
<div id="lart"></div>
<div id="rm"></div>
<div id="bbar">
<img id="bbar" src="img/bbar.jpg" width="881" height="34" alt=""/></div>
</div>
</div>
</body></html>