Inset

noun

say it: “IN-set” /ˈɪnsɛt/

The CSS property that sets top, right, bottom and left at once for a positioned element; inset: 0 stretches it to fill its container.

What does inset do?

inset sets top, right, bottom and left in one go for a positioned element. inset: 0 stretches it to fill its container.

.modal-backdrop { position: fixed; inset: 0; background: rgb(0 0 0 / 50%); }

In a sentence

  • “With inset: 0, the dark backdrop covers the whole window behind the pop-up.”

Level: Apprentice · More CSS terms at this level

Updated