Make footer stick to bottom

This is my footer now, How can I make it go all the way down?? I tried everything!
see.png
Css:
.pageContent{
margin:auto;
height:100%;
min-height:100vh;
width: 100%;
background-color: #fafafa;
flex: 1;
position: relative;
} //the whole div of my page
#footer{
display:flex;
justify-content: space-between;
height: 45px;
bottom: 0px;
width: 100%;
background: rgba(24,24,29,0.7);
color:white;
z-index:3;
font-size: 0.76em;
position:absolute;
}//my footer div

Open in new window

Code:
<div class="pageContent">
<div id= "footer" style="position:absolute;">
<span id="copyright" class= "centered uppercase"> Epicured &#169;2016</span>
<span class= "flex">
<a class= "pageLink inlineBlock uppercase" href="contact.php">
<span class="text"> Contact </span>
</a>
<a class= "pageLink inlineBlock uppercase" href="legal.php">
<span class="text"> Legal</span>
</a>

<a class= "pageLink inlineBlock uppercase" href="privacy.php">
<span class="text"> Privacy</span>
</a>
</span>
</div>


</div>

Open in new window

LVL 1
Jazzy 1012Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DmitriiconsultantCommented:
Have you tried to set:
position: relative;

Open in new window

in #footer?
Jazzy 1012Author Commented:
yes I tried all different positions, nothing seemed to work
Jazzy 1012Author Commented:
It only works when i do bottom: -200px or more, which is not a logically thing to do
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

Julian HansenCommented:
Can you show us the whole page.

Pushing footer to the bottom of the page so that it is responsive to content that may be longer than the page (i.e. the footer sticks to the bottom when content height is less than window height but is pushed below the fold when content is longer than window height) requires doing the following

<!doctype html>
<html>
<head>
<style type="text/css">
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  min-height: 100%;
  height: 100%;
}

.content {
  min-height: 100%;
  padding-bottom: 100px;
  background: green;
}
footer {
  height: 100px;
  margin-top: -100px;
  background: blue;
  color: white;
  text-align: center;
}
</style>
</head>
<body>
<div class="content">
  <p>this is the content to show what the page looks like</p>
</div>
<footer>
  This is the footer
</footer>
</body>
</html>

Open in new window


Working sample here

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Snarf0001Commented:
For aligning footers, I use flex layouts a lot, as it looks like you're trying to above, but without seeing the full code, tough to tell.
In any case, with flex layouts, the main thing is to have both items in the same parent container, set the main content to grow and fill, and the footer to just take up whatever space it needs.

Using flex layouts allows the footer to still take up whatever space it needs, without forcing a specific height.

<html>
<head>
    <style>
        body { display: flex; flex-flow: column; margin: 0; padding: 0; }
        main { flex: 1 1 auto; background: #ff0000; }
        footer { flex: 0 0 auto; background: #00ff00; }
    </style>
</head>
<body>

    <main>
        <p>page content...</p>
    </main>

    <footer>
        <p>footer content...</p>
    </footer>

</body>
</html>

Open in new window

Julian HansenCommented:
Just check browser backward compatibility before using flex - if you need to support older browsers you might run into trouble

https://developer.mozilla.org/en/docs/Web/CSS/flex
https://www.w3schools.com/cssref/css3_pr_flex.asp
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.