Definition and Usage
The 'fit' property gives a hint for how to scale a replaced element if neither its 'width' nor its 'height' property is 'auto'. Not all replaced objects can be scaled, but images typically can.
- Initial valuefill
- Applies toReplaced elements
- InheritedYes
- MediaVisual
- Computed valueAs specified
- AnimatableNo
- CSS VersionCSS3
Syntax
fit: fill | hidden | meet | slice;
Values
No detailed information
Examples
.class { fit: hidden ; }