The
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
value
div {
  background-color: green;
  height: 200px;
  position: relative;
  color: blue;
}
by Valeri Tandilashvili
3 years ago
CSS
properties
0
Pro tip: use ```triple backticks around text``` to write in code fences