I'm attempting to make a backdrop image that can be scrolled down vertically using a scroll bar. Using width and height percentages looks like a good idea because it seems to always fit the image to any screen resolution. Unfortunately, the image's length is quite long, and as a result, the bottom of the image is omitted. Changing the background-size attributes, utilizing overflow-y: scroll, and other adjustments that are not worth discussing are just a few of the methods I tried to get this functioning. Here is the code I have so far written:
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css">
<meta charset="UTF-8">
</head>
<body>
<div class='image'></div>
</body>
</html>
CSS
@charset "UTF-8";
/* CSS Document */
body {
margin:0;
}
.image {
position:absolute;
width:100%;
height:100%;
background:black;
background-image:url(../pictures/testjpg);
background-size:cover;
overflow-y: scroll;
}