Complete the code to make the image cover its container using Tailwind CSS.
<img src="image.jpg" alt="Sample" class="object-[1] w-full h-64" />
The object-cover class makes the image cover the entire container while maintaining aspect ratio.
Complete the code to make the video fit inside its container without cropping using Tailwind CSS.
<video class="object-[1] w-full h-48" controls> <source src="video.mp4" type="video/mp4"> </video>
The object-contain class makes the video fit inside the container without cropping, preserving aspect ratio.
Fix the error in the Tailwind class to make the image fill the container without preserving aspect ratio.
<img src="photo.png" alt="Photo" class="object-[1] w-40 h-40" />
The object-fill class stretches the image to fill the container, ignoring aspect ratio.
Fill both blanks to create an image that is centered and does not stretch using Tailwind CSS.
<img src="avatar.jpg" alt="Avatar" class="object-[1] object-[2] w-32 h-32 rounded-full" />
The object-center class centers the image inside the container, and object-contain fits the image without stretching.
Fill all three blanks to create a responsive image that covers the container, is centered, and has rounded corners using Tailwind CSS.
<img src="landscape.jpg" alt="Landscape" class="object-[1] object-[2] rounded-[3] w-full h-64" />
object-cover makes the image cover the container, object-center centers it, and rounded-lg adds medium rounded corners.