following values: The following example demonstrates all the possible values of the object-fit property: If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail: W3Schools is optimized for learning and training. They have courses on all the most important front-end technologies, from React to CSS, from Vue to D3, and beyond with Node.js and Full Stack. Then we have a function applyScaling which takes a single .scaled-wrapper element, and scales its child accordingly: The main idea is to take the ratio of the size between parent/child, and use that to scale the child accordingly. And since WordPress makes this so easy and gives you complete control over your content, there might be cases where you’d like to share your content with a select few people. As you have seen, the scale effect scales your elements from the center. height and width are relative to the size of the parent container. Twitter uses a stretched