position: absolute

PHOTO EMBED

Mon Jun 24 2024 17:15:46 GMT+0000 (Coordinated Universal Time)

Saved by @WebDevSylvester

.relative {
  position: relative;
  width: 600px;
  height: 400px;
}
.absolute {
  position: absolute;
  top: 120px;
  right: 0;
  width: 300px;
  height: 200px;
}
content_copyCOPY

to show how the child div behaves with position absolute to the parent

https://learnlayout.com/position