inset

The inset CSS property is shorthand for inset-block and inset-inline.

Syntax

CSS

inset: value;

JS

object.style.inset = "value";

Values

<'inset'> = <'top'>{1,4}
<'top'> = auto | <length-percentage>
auto

Automatically specified by the user agent.

<length-percentage> = [ <length> | <percentage> ]
<length>

Specifies the length using a number followed by a unit of measurement.

<percentage>

Specifies the percentage using a number followed by a percent sign (%).

Initial

auto

Examples

auto

length

percentage

JS

Internal

inset-block

inset-block-end

inset-block-start

inset-inline

inset-inline-end

inset-inline-start

External

World Wide Web Consortium (W3C)

Home Menu