I am struggling to position the footer component correctly at the end of my router-outlet
. After trying various CSS properties, I managed to make the footer stay at the bottom but it acts like a fixed footer. However, I want the footer to adjust its position based on the size of the router-outlet
. Changing the position
property to relative
causes the footer to move down and requires scrolling. The image below provides more information:
https://i.stack.imgur.com/UXOFt.png
The page appears to have shifted downward.
The CSS for my responsive topbar component is as follows:
.mat-toolbar {
height: 7vh;
background-color: white;
}
.mat-sidenav-container {
background-color: white;
height: 93vh !important;
z-index: 0 !important;
}
I suspect that the height
property of mat-sidenav-container
may be causing the issue.
I would appreciate any assistance in resolving this matter.
You can view a working example here.