lixiao
08-03-2012, 08:13 AM
Dear all,
I want my footer to appear in the very bottom of the page but it doesn't (see, e.g. http://www.lixiao-art.com/broken.html). What's wrong with my #footer? :confused:
In my external css, I put:
------------------------------------
body { font-family: Verdana;
color: white;
margin: 0px;
background-color: black;
}
#header { font-family: courier new;
padding-left: 40px;
padding-top: 5px;
padding-bottom: 5px;
border: none;
background-color: white;
margin-bottom: 0px; }
#content {float: left;
padding: 30px 20px 20px 100px;
width: 650px;
margin: 0px;
border: none;
font: white;
font-family: Arial;
background-color: black; }
#content a {text-decoration:underline}
h2 {height: 2em;}
#nav {float: left;
text-align: right;
font-size: small;
width: 180px;
margin-top: 30px;
font-weight: bold;
padding: 10px;
border: none;
}
#footer { font-family: arial;
padding-bottom: 5px;
width: 100%
border: none;
background-color: black;
color: white;
margin-bottom: 0px;
}
a{text-decoration: none;
color: white;}
a:hover {color: red;}
* {margin: 0;}
html, body {height: 100%;}
.wrapper {min-height: 100%;
width: 1500px;
height: auto !important;
height: 100%;
margin: 0 auto -1.5em;}
.footer, .push { height: 1.5em; }
.ImgBorder img { border:1px solid transparent;
height:100px;
}
.ImgBorder:hover img{ border-color: red}
.ImgBorder {display: block;
float: left;
margin: 30px 20px; }
h5{
clear:both
}
img { border: none; }
-------------------------------------------------
In the body html, I put:
---------------------------
...........
<div class="push"></div>
<div class="footer">
<h6 style="color: white; text-align: center;">CONTENT</h6>
</div>
----------------------------
Please help! Thanks so much!!
I want my footer to appear in the very bottom of the page but it doesn't (see, e.g. http://www.lixiao-art.com/broken.html). What's wrong with my #footer? :confused:
In my external css, I put:
------------------------------------
body { font-family: Verdana;
color: white;
margin: 0px;
background-color: black;
}
#header { font-family: courier new;
padding-left: 40px;
padding-top: 5px;
padding-bottom: 5px;
border: none;
background-color: white;
margin-bottom: 0px; }
#content {float: left;
padding: 30px 20px 20px 100px;
width: 650px;
margin: 0px;
border: none;
font: white;
font-family: Arial;
background-color: black; }
#content a {text-decoration:underline}
h2 {height: 2em;}
#nav {float: left;
text-align: right;
font-size: small;
width: 180px;
margin-top: 30px;
font-weight: bold;
padding: 10px;
border: none;
}
#footer { font-family: arial;
padding-bottom: 5px;
width: 100%
border: none;
background-color: black;
color: white;
margin-bottom: 0px;
}
a{text-decoration: none;
color: white;}
a:hover {color: red;}
* {margin: 0;}
html, body {height: 100%;}
.wrapper {min-height: 100%;
width: 1500px;
height: auto !important;
height: 100%;
margin: 0 auto -1.5em;}
.footer, .push { height: 1.5em; }
.ImgBorder img { border:1px solid transparent;
height:100px;
}
.ImgBorder:hover img{ border-color: red}
.ImgBorder {display: block;
float: left;
margin: 30px 20px; }
h5{
clear:both
}
img { border: none; }
-------------------------------------------------
In the body html, I put:
---------------------------
...........
<div class="push"></div>
<div class="footer">
<h6 style="color: white; text-align: center;">CONTENT</h6>
</div>
----------------------------
Please help! Thanks so much!!