First off, I am new here so thank you in advance for any help you can provide and I’m happy to be a new member.
I have stumbled onto two issues with my layout. The second issue I will wait and post in a different thread though.
I have a fixed footer and I have a three column layout and the problem I am having is that the content in the #left div hides behind the fixed footer clipping the end content. I imagine the #right div does this too but I haven’t tested. I do want the content to hide underneath the footer when needed. However, when their is not a lot of content it gets clipped behind the footer and what I’d like is to have it scroll up above footer when the content doesn’t fill enough to fully go under the footer. How could this be accomplished in my css, I am at a loss? I thought maybe max-height but I am pretty certain all this would do is prevent the main layout to push downward as more content is posted.
The css and xhtml are valid.
Link to see what I mean:
http://www.lonniebruhn.com/sitelab/
and here is the css code.
body, html {
font-size: 100%;
margin: 0;
padding: 0;
text-align: center;
line-height: 100%;
background-color: #000;}
#container {
margin: 0 auto;
width: 940px;
text-align: left;
background-image: url(images/container-bg.jpg);
background-repeat: no-repeat;
background-color: #1d1d1d;;
}
#header {
width: 920px;
position: relative;
top: 5px;
margin: 0 auto;
background-color: #333;
border: 2px #000 solid;}
#header h1 {color: #ffffff;
font-size: 2em;
font-family: Impact, "Arial Black", Trebuchet, sans-serif, "Times New Roman";
line-height: 90%;
text-align: center;
margin: 0;
padding: 10px;}
.quote {
position: relative;
text-align: right;
Left:10px;
font-family: "Arial Black", Verdana, Helvetica, Arial, sans-serif;
color: #ffcc33;
font-size: .5em;
font-style: italic;
}
#logo {
position: relative;
margin:0 auto;
background-image: url(images/header-logo.jpg);
background-repeat: no-repeat;
width:920px;
height:120px;
border: 2px #000 solid;
}
#left {
margin: 15px 10px 0px 10px;
width:180px;
position: relative;
width: 180px;
float: left;
border: 2px #000 solid;
background-color: #333;}
#left h1{
height:20px;
margin: 10px auto;
color: #ffcc33;
font-family: Impact, "Arial Black", Verdana, Helvetica, Arial, sans-serif;
font-size: 1.50em;
text-align: center;
text-decoration: underline;
}
#dates {
position: relative;
margin: 0 auto;
text-align: left;
}
#dates ul {
margin:0;
color: #ffffff;
font-family: Verdana, Arial, sans-serif;
font-size: .625em;
font-weight: bold;
position: inherit;}
#dates li {
padding: 10px 0 5px 5px;
list-style-image: url(images/1.gif);
display: list-item;
margin: 0px 18px 15px -15px;
list-style-type: none;
text-align:left;
border-bottom: 2px #ffcc33 dashed;}
#mainbody {
position: relative;
background-color:#333;
width: 480px;
min-height:320px;
margin: 15px auto;
right: 20px;
border: 2px #000 solid;
}
#right {
position: relative;
width: 220px;
background-color: #333;
min-height: 320px;
float: right;
border: 2px #000 solid;
margin-top: 15px;
margin-right: 10px;}
#right h1 {
text-align: center;
color: #ffcc33;
font-family: Verdana, Arial, sans-serif;
font-size: 1.25em;
margin: 0 auto;
padding-top: 10px;
padding-bottom: 10px;}
#footer-wrap {
background-image: url(images/footer-bg.jpg);
width: 100%;
height: 78px;
z-index: 2;
left: 0;
bottom: 0;
position: fixed;}
#footer-nav {
position: fixed;
width:260px;
height:75px;
z-index:2;
bottom: 0px;
left:0;
}
#footer-nav ul{margin:0 auto; left}
#footer-nav li {
float:left;
font-size: 0.68em;
z-index:2;
color: #aeaeae;
font-family: Verdana, Helvetica, Arial, sans-serif;
display:block;
width:90px;
height:20px;
list-style-type: none;
margin:0;
}
p {
margin:0 25px 25px 25px;
font-size: .875em;
font-family: Trebuchet, Verdana, Georgia, sans-serif, "Times New Roman";
color: #fff;
text-align: justify;}
#links{
text-align: right;
padding: 2px;
}
#links a:link, #links a:visited, #links a:active {
right:8px;
font-weight: bold;
font-size: 0.625em;
font-family: Verdana, Arial, sans-serif;
color: #cccccc;
font-family: Verdana, Arial, sans-serif;
text-decoration: none;
position: relative;}
#links a:hover {
text-decoration: underline;}
#links ul {margin: 0; list-style-type:none}
#links li {
display: inline;
}
#menu
{ height: 15px;
width: 920px;
height:22px;
position: relative;
margin: 0 auto;
background-color: #333;
border-left: 2px #000 solid;
border-bottom: 2px #000 solid;
border-right: 2px #000 solid;}
#menu ul{margin: 0 auto;}
#menu li
{ float: left;
margin: 0;
padding: 0;
list-style: none;
}
#menu li a
{ display: block;
height: 20px;
text-decoration: none;
padding: 0 19px 0 19px;
border: 2px #000000 solid;
text-transform: uppercase;
font-size: 0.75em;
font-family: Verdana, Helvetica, Arial,sans-serif;
color: #ccc;
background-color: #666;}
#menu li a:hover, #menu li a#selected, #menu li a#selected:hover
{ border: 2px #000000 solid; background-color: #3f3f3f;
}
.postdate {
display:block;
margin: 10px 20px 20px 20px;
padding-left: 10px;
color: #ffcc33;
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 0.75em;
background-color: #000;}
.post p {
margin: 0px 20px 0px 20px;
font-size: .75em;
font-family: Trebuchet, Verdana, Georgia, sans-serif, "Times New Roman";
padding: 10px;
background: #000;
padding-top: 20px;
line-height: 120%;
}
.post h1 {
margin: 0px 20px 0 20px;
color: #ffcc33;
font-size: 1.2em;
font-family: Verdana, Georgia, sans-serif, "Times New Roman";
padding: 10px;
background: #000;
text-decoration: underline;}
.post h2 {
margin: 0px 20px 0 20px;
color: #ffcc33;
font-size: .6em;
font-family: Trebuchet, Verdana, Georgia, sans-serif, "Times New Roman";
padding: 15px 10px 5px 10px;
background: #000;
text-transform: uppercase;}
.blue {
color: #3399ff;;
margin: 5px 0 10px 0;
display: block;}
.video {
width: 190px;
margin: 10px auto 0px a