CSS · Properties — CSS Transforms

transform-box

The CSS transform-box property. Initial value: view-box. Not inherited.

Syntax
transform-box: content-box | border-box | fill-box | stroke-box | view-box

Example

Try it

Notes

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

More in this group

backface-visibility perspective-origin rotate scale transform-style translate

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