I have this HTML page and I set the background-image property for my body tag in main.css file:
body{
border: 1px dashed orangered;
margin: 0 auto;
width:90%;
height:500px;
background-image: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTK7PRtGXnzNGOYQkswiaINU_VetoVdDmK53Q&usqp=CAU");
background-size: 100% 100%;
background-origin: border-box;
}
div{
border: 5px dashed green;
margin: 50px;
padding: 30px;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="styling/main.css">
<title>Title</title>
</head>
<body>
<div>hello world!</div>
</body>
</html>
But in the browser the image is displayed like it's the HTML background-image property! I mean it fills the whole browser window and not just body portion. How can I fix it so that the image just fills the body portion?