How can I prevent an image from resizing on smaller devices and keep it centered, with the image's edges going off-screen if the screen is too small, using Webflow?

Published on
September 22, 2023

To prevent an image from resizing on smaller devices and keep it centered with the image's edges going off-screen if the screen is too small, you can follow these steps in Webflow:

  1. Select the image element on your Webflow project.
  2. In the right sidebar, under the Styles tab, locate the Size dropdown menu.
  3. Change the Size dropdown from "Auto" to "Custom."
  4. Set the width and height values to the desired size of the image. Make sure to use absolute units like pixels (px) rather than relative units like percentages (%).
  5. Next, go to the Position dropdown menu in the same Styles tab.
  6. Change the Position dropdown from "Static" to "Absolute."
  7. In the Position dropdown, you will see additional options. Set the top, left, right, or bottom values to 50% each.
  8. Now, open the Transforms dropdown menu. Set the translateX and translateY values to -50% each. This will center the image horizontally and vertically.
  9. Finally, go to the Overflow dropdown menu and select "Hidden." This will ensure that the image's edges are cut off if the screen size is too small.

By following these steps, your image will no longer resize on smaller devices and will remain centered. If the screen becomes too small, the image's edges will go off-screen, maintaining the centered appearance.

Additional Questions

  1. How do I prevent an image from resizing in Webflow?
  2. What are the steps to center an image in Webflow?
  3. How can I make an image go off-screen in Webflow if the screen is too small?