, . , .
padding-bottom margin-bottom body footer. , "push" div .
jsFiddle , : http://jsfiddle.net/4vunq/
HTML:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Vault-X</title>
<script type="text/javascript">
document.createElement ('header')
document.createElement ('footer')
</script>
<script type="text/javascript" src="javascript.js"></script>
<link href="style_01.css" title="one" rel="stylesheet" type="text/css">
</head>
<body>
<div id="switchoff">
<div id="wrapper">
<header></header>
<div id="switch">
<a href="#" onClick="lightSwitch();">
<img src="http://www.vault-x.com/images/switch.jpg">
</a>
</div>
<div id="content"><p class="switch">Hello World</p></div>
<div class='push'></div>
</div>
<footer></footer>
</div>
</body>
</html>
CSS:
* {
margin: 0;
}
html, body {
height: 100%;
}
footer, .push {
height: 83px;
}
padding-bottom margin-bottom:
body {
background:url('http://www.vault-x.com/images/body_bg.jpg') repeat-x;
background-color: #000;
margin-bottom:83px;
}
:
#wrapper {
min-height: 100%;
min-width: 450px;
height: auto !important;
height: 100%;
margin: 0 auto -83px;
}
:
footer {
background: url('http://www.vault-x.com/images/foot_bg.jpg') center no-repeat,
url('http://www.vault-x.com/images/foot_liq_bg.jpg') repeat;;
width:100%;
height:83px;
min-width: 450px;
}
. ; !:)