Instead of using the individual
top
, right
, bottom
and
left
properties,
a single inset
property
can be used to specify all
the four values.
Four values
If this property has
four different values
separated by spaces:
10px
is top
20px
is right
30px
is bottom
40px
is left
Values get assigned in the clockwise direction starting from the top
.
Three values
10px
is top
20px
is right
as well as left
30px
is bottom
Two values
10px
is top
and bottom
20px
is right
and left
One value
All of top
, bottom
,
right
and left
are 10px.