<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<img src="spacer--1200x800.png" width="1200" height="800" />
</body>
</html>
This section contains CSS code:
body {
background-image: url('b2.jpg');
background-repeat:no-repeat;
background-size:contain;
height: auto;
width: 100%;
margin:0px auto;
overflow:hidden;
}
Be sure to review the above code. When the web browser is resized, the image adjusts proportionally, but there is an issue with the window height not resizing along with the image. To ensure no blank space appears, it's necessary for both the width and height of the window to resize automatically like the image.