MikeBrazeau
11-01-2007, 05:21 PM
Hey guys, me and my friend are recoding our school's website and we need some help with div's. I'll show the coding below and ask why I cant get a div at the bottom of the page like I'd like! Thanks!
---------------------------
HTML
---------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Woodlands Secondary School</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(false);
//-->
</script>
</head>
<body>
<div id="Top"><img src="Images/Banner/benebenbe copy.png"></div>
<div id="Navbar"><center><img src="Images/Buttons/navbar2.gif"><a href="index.html"><img src="Images/Buttons/home.gif" border="0"></a><a href="Academics.html"><img src="Images/Buttons/academics.gif" border="0"></a><a href="Electives.html"><img src="Images/Buttons/electives.gif" border="0"></a><a href="Athletics.html"><img src="Images/Buttons/athletics.gif" border="0"></a><a href="Carrer.html"><img src="Images/Buttons/carrer.gif" border="0"></a><a href="International.html"><img src="Images/Buttons/international.gif" border="0"></a><a href="Aboriginal.html"><img src="Images/Buttons/aboriginal.gif" width="170" height="30" border="0"></a><a href="Teacherlinks.html"><img src="Images/Buttons/Stafflinks.gif" border="0"></a><a href="Studentlinks.html"><img src="Images/Buttons/studentlinks.gif" border="0"></a><a href="Map.html"><img src="Images/Buttons/map.gif" border="0"></a><a href="Aboutus.html"><img src="Images/Buttons/About Us.gif" border="0"></a>
</center></div>
<div id="Body" >
<table id="Body-Table" background="Images/Buttons/bodytemp.gif">
<tr>
<td height="40" valign="middle"><center class="style3">
</center></td>
</tr>
<tr>
<td height="310 valign="top" valign="middle" ><div align= "left"">
<p><br>
</p>
</div></td>
</tr>
</table>
</div>
<div id="Bottom"><p>This is text</p></div>
</font>
</body>
</html>
---------------------------
CSS
---------------------------
body
{
background-color: #003366;
}
p
{
text-align: center;
text-decoration: bold;
}
.style3
{
color: #003366;
font-weight: bold;
}
#Top
{
Align: Center;
Position: absolute;
Left: 11px;
Top: 10px;
Width: 790px;
Height: 150px;
Background-color: #000000;
}
#Navbar
{
Position: absolute;
Left: 10px;
Top: 170px;
Width: 184px;
Height: 360px;
Background-color: #003366;
}
#Body
{
Position: absolute;
Left: 204px;
Top: 170px;
Width: 599px;
Height: 312px;
Background-color: #003366;
}
#Body-Table
{
Left: 204px;
Top: 170px;
Width: 599px;
Height: 312px;
Background-color: #003366;
}
#Bottom
{
Left: 10px;
Top: 560px;
Width: 800px;
Height: 30px;
background-color: #000000;
}
---------------------------
Screenshot
---------------------------
http://i133.photobucket.com/albums/q80/mikebrazeau/Website.jpg
**IGNORE THE BIG BLUE SCREEN ON THE RIGHT, IT'S MY SECOND MONITOR MESSING WITH THE SCREENSHOT**
---------------------------
HTML
---------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Woodlands Secondary School</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(false);
//-->
</script>
</head>
<body>
<div id="Top"><img src="Images/Banner/benebenbe copy.png"></div>
<div id="Navbar"><center><img src="Images/Buttons/navbar2.gif"><a href="index.html"><img src="Images/Buttons/home.gif" border="0"></a><a href="Academics.html"><img src="Images/Buttons/academics.gif" border="0"></a><a href="Electives.html"><img src="Images/Buttons/electives.gif" border="0"></a><a href="Athletics.html"><img src="Images/Buttons/athletics.gif" border="0"></a><a href="Carrer.html"><img src="Images/Buttons/carrer.gif" border="0"></a><a href="International.html"><img src="Images/Buttons/international.gif" border="0"></a><a href="Aboriginal.html"><img src="Images/Buttons/aboriginal.gif" width="170" height="30" border="0"></a><a href="Teacherlinks.html"><img src="Images/Buttons/Stafflinks.gif" border="0"></a><a href="Studentlinks.html"><img src="Images/Buttons/studentlinks.gif" border="0"></a><a href="Map.html"><img src="Images/Buttons/map.gif" border="0"></a><a href="Aboutus.html"><img src="Images/Buttons/About Us.gif" border="0"></a>
</center></div>
<div id="Body" >
<table id="Body-Table" background="Images/Buttons/bodytemp.gif">
<tr>
<td height="40" valign="middle"><center class="style3">
</center></td>
</tr>
<tr>
<td height="310 valign="top" valign="middle" ><div align= "left"">
<p><br>
</p>
</div></td>
</tr>
</table>
</div>
<div id="Bottom"><p>This is text</p></div>
</font>
</body>
</html>
---------------------------
CSS
---------------------------
body
{
background-color: #003366;
}
p
{
text-align: center;
text-decoration: bold;
}
.style3
{
color: #003366;
font-weight: bold;
}
#Top
{
Align: Center;
Position: absolute;
Left: 11px;
Top: 10px;
Width: 790px;
Height: 150px;
Background-color: #000000;
}
#Navbar
{
Position: absolute;
Left: 10px;
Top: 170px;
Width: 184px;
Height: 360px;
Background-color: #003366;
}
#Body
{
Position: absolute;
Left: 204px;
Top: 170px;
Width: 599px;
Height: 312px;
Background-color: #003366;
}
#Body-Table
{
Left: 204px;
Top: 170px;
Width: 599px;
Height: 312px;
Background-color: #003366;
}
#Bottom
{
Left: 10px;
Top: 560px;
Width: 800px;
Height: 30px;
background-color: #000000;
}
---------------------------
Screenshot
---------------------------
http://i133.photobucket.com/albums/q80/mikebrazeau/Website.jpg
**IGNORE THE BIG BLUE SCREEN ON THE RIGHT, IT'S MY SECOND MONITOR MESSING WITH THE SCREENSHOT**