I have mockups from a designer that I want to share with my colleagues for approval and I want the image to fill the browser's width of users accessing but allow scrolling like a website would.
I have tried to do this by using the following CSS code:
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin:0;
}
html, body, .image {
position:relative;
width:100%;
background-image:url('05.jpg');
background-size:cover;
}
</style>
</head>
<body>
<div class='image'></div>
</body>
</html>
The result is an image that fills the width 100% but does not allow scrolling, keeping the rest of the image hidden. How can I fill only the width of the page, but allow scrolling through the rest of the image?
I found this similar question but couldn't get it to work using the code shared.