CSS · Properties — CSS Basic User Interface

field-sizing

The CSS field-sizing property. Initial value: fixed. Not inherited.

Syntax
field-sizing: content | fixed

Example

Try it

Notes

Media: visual. Applies to: elementsWithDefaultPreferredSize. Computed value: asSpecified.

More in this group

appearance caret caret-animation caret-color caret-shape interactivity interest-delay interest-delay-end

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course