Forum Moderators: not2easy
<html xmlns:fb="http://ogp.me/ns/fb#">
<head>
<title>Title</title>
<link href="stylepage.css" rel="stylesheet" type="text/css"/>
</title>
</head>
<body>
<div id="fb-root"></div>
<div id="fb-root"></div>
<div id="fb-root"></div>
<div id = "wrapper">
<div id="top">
<div id = "menuContainer">
<ul>
<li><a href="#">Menu 1</a></li>
<li><a href="#">Menu 2</a></li>
<li><a href="#">Menu 3</a></li>
<li><a href="#">Menu 4</a></li>
<li><a href="#">Menu 5</a>
<ul>
<li><a href="#">Menu 5 sub 1</a></li>
<li><a href="#">Menu 5 sub 2</a></li>
<li><a href="#">Menu 5 sub 3</a></li>
</ul>
</li>
<li><a href="#">Menu 6</a></li>
<li><a href="#">Menu 7</a></li>
</ul>
</div><!--menuContainer DIV-->
<div id = "header">
<h2>Some Text Here</h2>
</div><!--End header DIV-->
</div><!--End of TOP Div-->
<div id="leftMenu">
<ul>
<li><a href="#">Left Menu 1</a></li>
<li><a href="#">Left Menu 2</a></li>
<li><a href="#">Left Menu 3</a></li>
<li><a href="#">Left Menu 4</a></li>
<li><a href="#">Left Menu 5</a></li>
</div>
<div id="content">
<p>Welcome!</p>
</div><!--End of Content-->
</div><!--End of Wrapper DIV-->
<div id="footer">
<P>© Owner, 2014</p>
</div><!--End of footer-->
</body>
</html>
body, div, leftMenu, leftMenu ul, leftMenu li
{
margin:0;
padding:0;
}
#top
{
height: 50px;
position: fixed;
top: 0px;
}
#wrapper
{
width: 900px;
height: 100%;
background-color: pink;
margin-left: 200px;
margin-top: 0px;
}
#header
{
width: 896px;
margin: 0px 0px;
background-color:blue;
color: white;
text-align: right;
padding: 2px 2px 2px 2px;
float: clear;
top: 50px;
padding-top: 20px;
}
#menuContainer
{
height: 30px;
background-color: grey;
position: fixed;
width: 900px;
}
#menuContainer ul
{
list-style: none;
margin:0;
padding: 0;
}
#menuContainer ul li
{
text-decoration: none;
float: left;
width: 120px;
border-right: 1px solid black;
text-align: center;
position: relative;
height: 30px;
line-height: 30px;
}
#menuContainer li ul
{
position: absolute;
top: 30px;
left: 0;
visibility: hidden;
}
#menuContainer li ul li
{
float: none;
/*border-top: 1px solid black;*/
background-color: yellow;
border-bottom: 1px solid black;
border-right: 1px black;
border-left: 1px black;
}
#menuContainer a
{
text-decoration: none;
display: block;
}
#menuContainer li:hover
{
background-color: maroon;
}
#menuContainer li:hover ul
{
visibility: visible;
}
#leftMenu
{
width: 150px;
background-color: grey;
height: 85%;
float: left;
margin-top: 89px;
margin-left: 0px;
text-align: justify;
border: 0;
padding: 0px;
padding-top: 0px;
}
#leftMenu ul
{
padding: 0px;
height: 30px;
margin:0px;
}
#leftMenu a
{
text-decoration: none;
display: block;
}
#leftMenu ul li
{
text-decoration: none;
list-style: none;
border-bottom: 2px solid black;
background-color: yellow;
border-left: 0px;
text-align: center;
display: block;
line-height:30px;
}
#leftMenu a:hover
{
display: block;
background-color: black;
height: 30px;
}
#Content
{
background-color: green;
width: 730px;
float:left;
padding-left: 20px;
height: auto;
margin-top:89px;
}
#footer
{
float: both;
background-color: black;
height: 30px;
margin-top:0px;
width: 898px;
margin-left: 200px;
color: white;
text-align: center;
line-height: 30px;
}
</div><!--End of Wrapper DIV--> float: both;
width: 898px;
margin-left: 200px; float: both; isn't doing anything, maybe you want to use clear: both; (?) if there are any floats open from the content preceding it. width: 898px; with the footer inside the #wrapper container, the width is limited by the width of the wrapper div. margin-left: 200px; Again, the width and position of the #footer div are taken care of by the #wrapper and setting a 200px left margin would leave you with a black box on a pink background divided close to the middle of the footer vertically. height: 30px; <div id="fb-root"></div>
<div id="fb-root"></div>
<div id="fb-root"></div>
I had challenges placing on footer within the wrapper DIV.
float: both;
isn't doing anything, maybe you want to useclear: both;
(?) if there are any floats open from the content preceding it.
float: clear; usually you would need a ; to use the © as in ©
&) & ) & ;) &) = &;) Got the footer in its place using float: clear
float: clear