I'm in the process of developing a new website and I want to include a top bar and footer with some unique elements on it. Additionally, I am looking to create a rectangular area where I can input text.
After writing the following code snippet, this is the current outcome that I have produced:
div.custom-bg {
background-position-x: center;
background-position-y: center;
;
background-image: url("../img/bg32.svg");
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
padding-left: 2%;
padding-right: 2%;
padding-bottom: 2%;
padding-top: 2%;
max-height: 100%;
max-width: 100%;
}
div.alpha-layer {
background-color: rgba(255, 255, 255, 0.5);
padding-left: 5%;
padding-right: 5%;
padding-bottom: 5%;
padding-top: 5%;
height: 500%;
width: 86%
}
div.top-bar {
background-color: rgb(32, 42, 52);
background-attachment: fixed;
position: fixed;
left: 0;
top: 0;
height: 2%;
width: 100%;
padding: 1%;
}
div.footer {
background-color: rgb(32, 42, 52);
background-attachment: fixed;
position: fixed;
bottom: 0;
left: 0;
height: 2%;
width: 100%;
padding: 1%;
}
<div class="custom-bg">
<div class="top-bar"></div>
<div class="alpha-layer">
<p> " Lorem ipsum... ( cut ) Curabitur eu amet."</p>
</div>
<div class="footer"></div>
</div>
However, upon closer inspection, I noticed that there is no longer a scroll bar to view the entire text as shown in the picture.
Previously, there was a scroll bar but now it seems to have disappeared...
I am looking to add content between the top bar and the footer bar. What could I have potentially done wrong?
The image below illustrates what my ideal design should look like: