<html>
<head>
<style>
body {
background-color:#E7E9EB;
}
#myDIV {
height:300px;
padding:20px;
}
img{
object-fit: fill;
}
</style>
</head>
<body>
<h1>The object-fit property</h1>
<div id="myDIV">
<img src="pineapple.jpg" alt="Pineapple" width="100" height="300">
</div>
</body>
</html>