Home » Tutorials fit property Tutorials Author admin Reading 1 min Views 387 Published by August 17, 2012 Modified by October 17, 2024 Contents Definition and UsageSyntaxValuesExamplesDefinition 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 1 .class { 2 fit: hidden ; 3 }