I am creating a reactJS app and I am having trouble with keeping the footer in the bottom of the page. The footer stays at the bottom of the page initially, but the SPDashboard
dynamically populates the page and it grows bigger and the footer does stay in the bottom, but it overlaps with the page. How can I keep the footer at the bottom AND keep it from overlapping with the div.dashboard
?
Here is the code:
.monitoring-footer {
position: absolute;
left: 0;
bottom: 0;
height: 75px;
width: 100%;
}
header {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
color: white;
height: 12vh;
}
<div className="App">
<header style={{backgroundColor: '#014e8c'}}>
<h1 className="App-header">Tool</h1>
</header>
<div className="dashboard" style={{justifyContent: 'center', marginTop: '3vh'}}>
<SPDashboard/>
<CDashboard/>
</div>
<footer className="monitoring-footer" style={{backgroundColor: '#014e8c', marginTop: '45px', justifyContent: 'center'}}>
<p> footer</p>
<p>Email: <a href="mailto:email@email.com">email@email.com</a></p>
</footer>
</div>