Hi all. I have a problem positioning my div tags. I have two divs which are aboslutely positioned which appear as boxes to a visitor. I want my footer to go right below these boxes but it shows up overlapping at the top of the boxes or at the top behind the boxes. Is there something I'm doing wrong? Here is the html:
<html>
<head>
<title>The title of the website</title>
<LINK rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<center>
<br>
<br>
<span itemprop="name"><h1>Header1</h1></span>
<h4>Header4</h4></center>
[ Home ]
<div id="wrap">
<div id="content4">
<p>Content 4</p></div>
<div id="content3">
<p>Content 3</p>
</div>
<div id="footer">Here is the footer
</div>
</div>
</body>
</html>
- <html>
- <head>
- <title>The title of the website</title>
- <LINK rel="stylesheet" type="text/css" href="css/style.css">
- </head>
- <body>
- <center>
- <br>
- <br>
- <span itemprop="name"><h1>Header1</h1></span>
- <h4>Header4</h4></center>
- [ Home ]
- <div id="wrap">
- <div id="content4">
- <p>Content 4</p></div>
- <div id="content3">
- <p>Content 3</p>
- </div>
- <div id="footer">Here is the footer
- </div>
- </div>
- </body>
- </html>
-
And here is the CSS
html {height:100%;}
body {
margin: 0;
background-image: url('../images/bg1.jpg');
background-repeat: repeat-x;
}
/* table menu */
#wrap {
margin:auto;
position:relative;
left:0 px;
background-color:red;
height:100%;
}
#inner-wrap {
padding-bottom:80px;
}
#inner-wrap:after {
content:" ";
display:block;
clear:both;
}
#tablemenu
{
background-color: 3B5998;
text-align: left;
width: 100%;
border-top: 1;
border-left:0;
border-style: solid;
border-color: black;
border-radius: 10;
font-family: tahoma;
color: white;
font-size: 12px;
}
img.tablelines
{
position:relative;
left: 29px;
}
#content1
{
background-color:white;
text-align: center;
position: absolute;
left: 0px;
width: 400px;
height: auto;
margin: 30px;
border-top:1;
border-right:1;
border-style:solid;
border-color:black;
font-size: 12px;
color: black;
}
#content2
{
background-color:white;
text-align: left;
position: absolute;
left: 430px;
width: 400px;
height: auto;
margin: 30px;
border-top:1;
border-right:1;
border-style:solid;
border-color:black;
font-size: 12px;
color: black;
}
#content3
{
background-color:white;
text-align: center;
position: absolute;
left: 860px;
width: 400px;
margin: 30px;
border-top:1;
border-right:1;
border-style:solid;
border-color:black;
font-size: 12px;
color: black;
}
#content4
{
background-color:white;
text-align: left;
position: absolute;
left: 0px;
width: 800px;
margin: 30px;
border-top:1;
border-right:1;
border-style:solid;
border-color:black;
font-size: 14px;
color: black;
}
#footer {
position: fixed;
bottom: 0px;
height:80px;
background-color: #333333;
width:100%;
color:#FF00FF;
text-align:center;
}
Any help would be greatly appreciated, Thanks!