inset
property in CSS is a shorthand for the following four properties: top
, right
, bottom
and left
.exampleText {
position: absolute;
inset: 10px 30px 60px 40px;
background-color: yellow;
}
Its parent element needs to have position
property with relative
valuediv {
background-color: green;
height: 200px;
position: relative;
color: blue;
}