As a newcomer to angular, I have experience with HTML, JS & CSS. My goal is to make a background image fill the width of the page and allow scrolling to view the rest of the image since it is taller than wider.
In the global stylesheet style.css
, I placed the background image under the HTML tag. It displays correctly in terms of width but I am struggling to enable scrolling to see the full image.
This snippet is from 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 attempted to add overflow: scroll
, which only resulted in a scroll bar on the side without allowing actual scrolling.
What changes should I make to successfully scroll and view the entire background image?