Footer fixed at bottom of page [duplicate]

2

Well, I've already looked at various websites how can I do this? Most people say that it's for me by

body, html{height:100%;}
footer{width:100%; bottom:0; position:absolute;}

But when I do this, it stays at the bottom of the screen, not at the bottom of the page.

That is, it sits in the middle and overlaps the content.

Does anyone know how I can make it fixed?

I'm working as follows. It separates a file "Header.php", "Footer.php", and then I include in the content file

<?php include "header.php"?>
//conteudo
...
<?php include "footer.php" ?>
    
asked by anonymous 31.10.2015 / 17:51

1 answer

0

To fix in html is used the pasition fixed in case your code would be:

body {
    margin:0px; 
    padding:0px;
}

footer {
    width:100%; 
    position:fixed; 
    left 0px; 
    bottom:0px;
}

This is fixed at the bottom of the screen.

    
01.11.2015 / 19:10