Posted January 24 '10 at 05:25 PM
Posts: 3
Hello!
This is my first time ever trying to make a website using CSS to make a web page. I'm currently using Dreamweaver CS4 (noob with this also) and I've managed to get the basic layout of my page done but when I check it in a browser, It never comes out to full width/height and I keep getting the white border around the far edges of my page.
Live Example:
http://www.animetoshokan.org/template.html
Here is what my current code looks like so far:
<!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" >
<head>
<title>Anime Toshokan Inc. :: We've Been Waiting For You! :: Ver 11.1 :: Revival Serenade</title>
<style type="text/css">
#body {background: #ffffff;
border-left: solid;
border-left-width: 0;
border-right: solid;
border-right-width: 0;
border-top-style: solid;
border-top-width: 0;
border-bottom-style: none;
border-bottom-width: medium;
}
#header {background: #0000ff;
background-image: url(headerbg.png);
border-left: solid;
border-left-width: 0;
border-right: solid;
border-right-width: 0;
border-top-style: solid;
border-top-width: 0;
border-bottom-style: none;
border-bottom-width: medium;
}
#menu {background: #00ff00;
background-image: url(menubarbg.png);
}
#maincol {background: #ffffff;
background-image: url(contentbg.png);
background-repeat: no-repeat;
}
#footer {background: #ff0000;
background-image:url(footerbg.png);
}
</style>
</head>
<body id="body">
<div id="pagewidth">
<!--------- Header Area --------->
<div id="header">
<center>
<table width="100%" cellpadding="0" cellspacing="0" border="0" bordercolor="#111111" style="height: 168px">
<tr valign="top">
<td height="168">
</td>
</tr>
</table>
</center>
</div>
<!--------- Main Menu Area --------->
<div id="menu" >
<center>
<table width="100%" cellpadding="0" cellspacing="0" border="0" bordercolor="#111111" style="height: 75px">
<tr valign="top">
<td height="75">
</td>
</tr>
</table>
</center>
</div>
<!--------- End of Main Content Area --------->
<!--------- Main Content Area --------->
<div id="maincol" >
<center>
<table width="85%" bgcolor="#ffffff" cellpadding="0" cellspacing="0" border="0" bordercolor="#111111" style="height: 800px">
<tr valign="top">
<td height="180">
Main Content Here
</td>
</tr>
</table>
</center>
</div>
<!--------- End of Main Content Area --------->
<!--------- Footer Area --------->
<div id="footer" >
<center>
<table width="85%" cellpadding="0" cellspacing="0" border="0" bordercolor="#111111" style="height: 80px">
<tr valign="top">
<td height="80">
</td>
</tr>
</table>
</center>
</div>
<!--------- End of Footer Area --------->
</div>
</body>
</html>
Can anyone help me out with this by pointing out my error or giving me some tips on what to do so I wont this kind of mistake again?