I currently have three sections on my website:
- "Header" with a height of 100px.
- "Content Area" with a height of 462px.
- "Footer" with a height of 100px.
The strange issue I am facing is that in Chrome, the scroll bar is invisible (which is ideal), but in Mozilla Firefox, the scroll bar is visible. I'm not sure why this is happening as the same code works perfectly fine in Chrome. Below is my code - PLEASE HELP! This seems to happen to me quite frequently.
body {
padding: 0;
margin: 0;
}
h1,
h2,
h3 {
margin: 0;
padding: 0;
color: #fff;
}
.header {
height: 100px;
background: red;
width: 100%;
}
.content-area {
min-height: 462px;
width: 100%;
background: grey;
}
.footer {
height: 100px;
background: black;
width: 100%;
}
<header class="header">
<h1>Header</h1>
</header>
<div class="content-area">
<h2>Content Area</h2>
</div>
<footer class="footer">
<h3>Footer</h3>
</footer>