Is there a way to uncheck the responsive image box in Webflow if the option is not showing up in the designer?

Published on
September 22, 2023

If you are unable to find the option to uncheck the responsive image box in the Webflow designer, there is still a way to achieve this by using custom code. Here's how you can do it:

  1. Open your project in the Webflow designer and navigate to the page where you want to uncheck the responsive image box.

  2. Click on the element that contains the responsive image you want to modify.

  3. In the right sidebar, navigate to the Styles tab and click on the plus (+) icon to add a new style.

  4. In the style settings, give the style a name, such as "Custom Image Style".

  5. Scroll down to the Custom Code section and click on the "Add Custom Code" button.

  6. In the code editor that appears, enter the following CSS code:

.class-name {    object-fit: fill !important;    height: auto !important;}

Replace .class-name with the actual class name of the element that contains the responsive image. You can find the class name by selecting the element and looking for the class in the right sidebar.

  1. Click on the "Save" button to save the custom code.

  2. Preview and publish your site to see the changes take effect.

By adding this custom code, you are overriding the default behavior of the Webflow responsive image and applying a different CSS property to the image. This code sets the object-fit property to fill and the height property to auto, which will prevent the image from being responsive and maintain its original aspect ratio.

Please note that modifying the responsive image behavior using custom code may have an impact on how the image is displayed on different device sizes. Make sure to thoroughly test your changes and adjust the code as needed to achieve the desired result.

Additional Questions:

  1. How can I modify the CSS properties of a responsive image in Webflow?
  2. Is it possible to use custom code to override the responsive image feature in Webflow?
  3. What is the purpose of the responsive image box in the Webflow designer?