The element is positioned relative to its first positioned (not static) ancestor element
.parent {
    position: relative;
}
.parent h1 {
    position: absolute;
    top: 10px;
}
https://youtu.be/aFtByxWjfLY?t=200
by Valeri Tandilashvili
5 years ago
CSS
properties
CSS Crash Course For Absolute Beginners
2
Pro tip: use ```triple backticks around text``` to write in code fences