index.html
<div class="wrapper" id="root"></div>
<div class="wrapper"> // content container
<header></header>
<main></main>
<footer></footer>
</div>
main {
flex: 1;
}
.wrapper {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100vh;
}
https://stackoverflow.com/questions/40515142/how-to-make-a-sticky-footer-in-react
https://stackoverflow.com/questions/71478639/footer-not-sticking-to-the-bottom-of-the-page-in-react
https://stackoverflow.com/questions/10099422/flushing-footer-to-bottom-of-the-page-twitter-bootstrap
https://stackoverflow.com/questions/55541850/how-to-make-footer-stay-at-bottom-of-the-page-with-flex-box
No comments:
Post a Comment