As a beginner, I am in the process of creating a web page that features a consistent background image. However, I have encountered an issue where the scroll bar does not appear on a specific page called "family details" due to the background image.
I attempted to address this problem by using an image tag instead of a background image, but this caused the content to display below the image rather than over it.
Solution Attempts:
<div class="background-image">
<router-outlet></router-outlet>
</div>
This solution involved setting the background image through CSS:
.background-image {
background-image: url('assets/icf.jpg');
background-position: center top;
background-size: 100% auto;
}
Alternatively, here is how I attempted to implement the image tag:
<img src="assets/icf.jpg" alt="/">
<router-outlet></router-outlet>