I've never really have made the background-image to work in CSS as it supposed to. Always set an image in HTML and then formatted it. But I thought I'd get it right this time. Plus I'm gonna add images to this so the issue will add up.
What am I doing wrong? Also, overflow: hidden isn't working and viewport seems weird. Maybe that's with the background-image formatting?
Seems like I'm not allowed to add images. So can't add a screenshot.
body {
overflow-anchor: hidden:
margin: 0px;
}
/* The sky defined plus the sea as a box-reflection of the sky in the lake*/
#sky {
background: linear-gradient( rgb(1, 71, 202), #FFF);
position: absolute;
height: 50vh;
width: 100vw;
-webkit-box-reflect: below;
-webkit-filter: grayscale(0%);
z-index: 0;
}
/* The sun as a CSS radial with added blur function */
#sun {
background-color: white;
top: 25vh;
left: 33vh;
border-radius: 50%;
height: 50px;
width: 50px;
-webkit-filter: blur(1px);
position: relative;
z-index: 10;
}
/* Image of forest in png-format with a tranparency at the top of the treeline */
#lakeline {
background-image: url("../images/lakeline.png")
top: calc(50vh - 75px);
align-content: center;
position: absolute;
-webkit-filter: blur(0px) grayscale(0%);
-webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.8, transparent), to(white));
z-index: 40;
}