Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
#parentDiv {
  position: relative;
  width: 60%;
  height: 250px;
  border: solid black 1px;
}
#myDiv {
  position: absolute;
  background-color: lightblue;
  inset: 15px 30px 60px 90px;
}
</style>
</head>
<body>
<h1>The inset Property</h1>
<div id="parentDiv">
  <div id="myDiv">This div element has a distance of 15 pixels to parent from top, 30 pixels from right, 60 pixels from bottom, and 90 pixels from left.</div>
</div>
</body>
</html>