# 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.

```css
.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](https://www.ask-codey.com/glossary?category=css&level=2)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/inset
