how do I create a sticky footer using a footer file.For example when I create a footer.php file and include it to the main page, how do I make it a sticky footer.By my search, the best way to create a sticky footer is to use the wrapper tag, as shown in the codes below.
<div class="wrapper">
<header>header</header>
<div class="main">
vfdgdgdgdf
</div>
<div class="push"></div>
</div>
<footer>Foo</footer>
this is the css codes
html,body{
height:100%;
min-height: 100%;
}
.main{
min-height: 100%;
height:100%;
}
header{
height:50px;
background-color: #ccc;
}
.wrapper{
min-height: 100%;
height:100%;
margin: 0 0 -60px;
}
.push{
height:60px;
}
footer
{
background-color:grey;
position:relative;
height:60px;
width:100%;
}
but can that be used when we include a separate footer file for example
<header> </header>
<body>
<?php include('header.php');?>
<?php include('footer.php');?>
</body>