I'm working on implementing the Sticky Footer technique on my website, but I'm running into an issue with aligning my content both horizontally and vertically within the #main
section. The problem arises from the fact that the bottom padding is set to padding-bottom: 180px
, causing the #main
to not line up properly vertically with the footer that shares the same size. If I remove the padding and manually set the height of #main
, it works as intended. However, this approach causes the footer to not consistently stay at the bottom of the page. How should I proceed to resolve this dilemma?
To view with padding-bottom: 180px;
: this link
To view without padding-bottom: 180px;
: this other link
Any assistance would be greatly appreciated!