We are going to manipulate two rectangles in this article: the image we want to display and the viewport in which we want to display it. While using W3Schools, you agree to have read and accepted our, Default value. For example, adding the class md:bg-contain to an element would apply the bg-contain utility at medium screen sizes and above. The CSS object-fit property is used to specify how an or