make footer stick to bottom without overlap over other elements

Solutions on MaxInterview for make footer stick to bottom without overlap over other elements by the best coders in the world

showing results for - "make footer stick to bottom without overlap over other elements"
Tristen
04 Aug 2018
1body {
2  display: flex;
3  flex-direction: column;
4  min-height: 100vh;
5}
6
7#footer {
8  background-color: #efefef;
9  flex: 0 0 50px;/*or just height:50px;*/
10  margin-top: auto;
11}