I require assistance to resolve an issue in my CSS layout. The footer is currently positioned midway up the contents instead of being placed right below. You can view my code below. Please help me, as I'm not sure what went wrong and have already invested a lot of time into this.
HTML:
<title>My Reporting System</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<body>
<div id="user-logged">
You are logged in as : <strong>User</strong><br>Logout
</div>
<hr>
<div>
<a id="logo" href=".">
<img id="logo" src="images/logo.png" alt="BRS"/>
</a>
<div id="sidebar">
My Reporting System
<ul>
<li>Outlet Settings</li>
<li>Update Daily Stats</li>
<li>Void Stats</li>
<li>Email Report</li>
</ul>
</div>
</div>
<div class="body-content">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam
pharetra eget lacus vitae elementum. Morbi a justo est. Aenean aliquet
elit ac nunc vestibulum rutrum. Vestibulum blandit pellentesque erat, a
imperdiet sem. In egestas in sapien at pelle...
css:
#logo {
position:absolute;
top:5px;
left:15px;
width:150px;
height:auto;
}
#sidebar {
width:200px;
min-height:500px;
height:auto;
background-color: #6699cc;
padding:1px;
}
#user-logged {
top:0px;
right:0px;
text-align: right;
padding-top:50px;
padding-right:10px;
margin-left:200px;
height:50px;
min-width:200px;
}
.body-content {
position:absolute;
top:126px;
margin-left:202px;
min-height:700px;
background-color: #ccc;
width:80%;
clear:both;
height: auto !important;
}
#footer {
position:absolute;
padding-top:20px;
width:100%;
height:150px;
font-size:12px;
background-color: #cc9966;
text-align:center;
font-weight:bold;
color:#fff;
}