It's an HTML layout question - doesn't related to Angular. You don't even need to use bootstrap for that.
You can use flex - set the footer with flex-basis: 50px;
(for example) and the rest with flex-grow:1;
. This will set a fix size for your footer and will strech the rest on the entire page.
body,
html {
height: 100%;
padding: 0;
margin: 0;
}
.page {
display: flex;
flex-direction: column;
height: 100%;
}
.content {
flex-grow: 1;
}
.footer {
flex-basis: 50px;
background-color: black;
color: white;
text-align: center;
}
<div class="page">
<div class="content">Content here</div>
<div class="footer">Footer</div>
</div>
If you don't want the footer the stick to the bottom, remove the container's height:100%
body,
html {
height: 100%;
padding: 0;
margin: 0;
}
.page {
display: flex;
flex-direction: column;
}
.content {
flex-grow: 1;
}
.footer {
flex-basis: 50px;
background-color: black;
color: white;
text-align: center;
}
<div class="page">
<div class="content">Content here</div>
<div class="footer">Footer</div>
</div>