Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.css footer stick to the bottom of the page.

Status
Not open for further replies.

mletendre

Technical User
Dec 30, 2008
158
0
0
US
found this site/tutorial and looks great, but having a little difficulty getting it to work right in my site.

here is my css
@charset "utf-8";
/* CSS Document */

body {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
margin: 0px;
padding: 0px;
background-color: #f3f2ec;
color: #6c6248;
text-align: center;
}
img
{
border-style:none;
font-size: 12px;
text-align: center;
padding-right: 6px;
padding-left: 0px;
}
#wrapper {
width: 916px;
text-align: left;
font-size: 14px;
font-family: Georgia, "Times New Roman", Times, serif;
background: #FFF;
height: auto
min-height: 100%
margin-top: 0;
margin-right: auto;
margin-bottom: -152px;
margin-left: auto;
}

.eco {
padding-right: 11px;
}
#top {
background-image: url(images/topbg.gif);
background-repeat: repeat-x;
height: 99px;
width: 916px;
background-position: center;
text-align: center;
float: inherit;
position: relative;
margin: auto;
}
#t1 {
width: auto;
padding-top: 5px;
text-align: center;
margin-top: 0;
margin-right: 0px;
margin-bottom: 0;
margin-left: 0px;
}
#t2 {
float: left;
width: 200px;
}
#t3 {
float: right;
width: 300px;
}
#header1 {
background-image: url(images/headerA.jpg);
background-repeat: no-repeat;
height: 88px;
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
color: #6c6248;
padding-bottom:88px;
}
#header2 {
background-repeat: no-repeat;
height: 44px;
color: #6c6248;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0;
padding-left: 0px;
}
#header3 {
background-repeat: repeat;
height: 700px;
padding: 20px 26px 0;
color: #000;
}
.mission {
}
.darktitle {
font-family: Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: bold;
text-transform: uppercase;
color: #334745;
}
.leftimg {
float: left;
padding-right: 10px;
display: block;
}
.rightimg {
float: right;
padding-left: 6px;
display: block;
}
.greentext {
font-weight: bold;
color: #629d2c;
}
#content {
padding: 15px;
overflow: auto;
}
#left {
float: left;
width: 400px;
}
#right {
float: right;
width: 458px;
}
#footer {
background-image: url(images/bottombg.gif);
background-repeat: repeat-x;
height: 147px;
text-align: center;
color: #000;
width: 916px;
float: inherit;
margin: auto;
padding: 6px;
position: relative;
bottom: auto;
}
#contactform input {
background-color: #e9e7dc;
border: 1px solid #dedbcb;
font-size: 11px;
margin: 5px 0 5px 0;
padding: 2px;
width: 300px;
}
#contactform textarea {
background-color: #e9e7dc;
border: 1px solid #dedbcb;
font-size: 11px;
margin: 3px 0 3px 0;
width: 710px;
padding: 2px;
}
#contactform {
padding: 10px;
height: 210px;
width: 830px;
}
#contactform label {
float: left;
display: block;
width: 80px;
padding: 3px;
margin-top: 5px;
font-weight: bold;
clear: both;
}
#form1 #wrapper #header3 {
color: #000;
text-align: left;
vertical-align: super;
}
#form1 #wrapper #header3 #header3 {
font-size: 16px;
font-weight: bold;
color: #2C3F3D;
}
#form1 #wrapper #header3 h4 #header4 {
color: #2C3F3D;
font-size: 16px;
font-weight: bold;
}

#form1 #top #t1 #t3 div {
font-weight: bold;
}

#form1 #top #t1 #t3 div {
font-size: 14px;
}
#form1 #top #t1 #t3 div {
font-weight: normal;
}

.eco {
float:left;
}
.p1 {
text-align: right;
}
.flyer {
float: right;
}
.box {
float: left;
padding-top: 45px;
padding-left: 15px;
}
.blue {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-style: italic;
font-weight: normal;
color: #2F47C0;
}
.green {
font-family: Tahoma, Geneva, sans-serif;
font-style: italic;
color: #84B854;
font-weight: normal;
text-transform: uppercase;
}
.italic {
font-family: Georgia, "Times New Roman", Times, serif;
font-style: italic;
color: #000;
font-size: 18px;
font-weight: normal;
}
.tm {
font-family: Tahoma, Geneva, sans-serif;
font-size: 9px;
color: #2F47C0;
font-style: normal;
vertical-align: super;
}
.tan {
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: bold;
color: #454B1D;
}
.zeroWaste {
margin-bottom:11px;
}
.tonerBox {
margin-right: 7px;
padding-bottom: 10px;
}
.map {
float: left;
}
* {
margin: 0;
}
html, body {
height: 100%;
}
.wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -152px;
}
.footer, .push {
height: 152px;
}
#form1 p {
text-align: left;
}
#form1 p {
font-family: Georgia, "Times New Roman", Times, serif;
}
#form1 p {
color: #000;
text-align: left;
}
.push
1. .footer, .push {
2. clear: both;
3. }
 
We can't see your html, but this doesn't look valid:
Code:
.push
   1. .footer, .push {
   2. clear: both;
   3. }

It probably should just be:
Code:
 .footer, .push {
   clear: both;
   }


Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top