Inset

Sets top, right, bottom and left at once.

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%); }

Level: Apprentice · More CSS terms at this level

Updated