We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19f46ea commit 073ec98Copy full SHA for 073ec98
css-practice.md
@@ -1058,6 +1058,16 @@ Pick ONE OR MORE options
1058
4. object-fit: cover;' avoids clipping the image by sacrificing the aspect ratio.
1059
```
1060
1061
+<details><summary><b>Answer</b></summary>
1062
+
1063
+```css
1064
+2. 'object-fit: contain;' preserves the aspect ratio of the image and makes sure no clipping happens to the whole image.
1065
1066
+3. object-fit: cover;' avoids the image getting squeezed, but it could end up clipping the image.
1067
+```
1068
1069
+</details>
1070
1071
<div align="right">
1072
<b><a href="#">↥ back to top</a></b>
1073
</div>
0 commit comments