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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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?
0
Jazzy 1012Author Commented:
yes I tried all different positions, nothing seemed to work
0
Jazzy 1012Author Commented:
It only works when i do bottom: -200px or more, which is not a logically thing to do
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

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
0

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

0
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
0
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.