I'm new to using angular but do have practice with HTML, JS & CSS. I'm trying to get a background image to fill the width of the page, I then want to be able to scroll to be able to see the rest of the image. (The image is higher than wider).
I've set the background image under the HTML tag in the global stylesheet style.css
and it appears and fills the width exactly how it should, but I cannot work out how to be able to scroll the see the rest of the image.
This is what is in the style.css
:
html {
background-image: url("app/Images/Background.png");
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
position: absolute;
margin: 0;
}
I tried adding overflow: scroll
but this just added a scroll bar to the side of the page but did not let me scroll.
What do I need to add to be able to get the age to scroll to see the whole background image?