How can I stretch a body background image in Webflow to fill the entire screen without preserving its aspect ratio?

TL;DR
  • Select the Body element in Webflow Designer and add a background image in the Style panel.
  • Set the background position to center, size to "Cover", repeat to "No-Repeat", and attachment to "Scroll".
  • Apply custom CSS in the Page settings to set background-size to 100% 100% for full stretch.

To make a background image stretch and cover the entire screen in Webflow, follow these steps:

1. Access the Body's Style Settings

  • Select the Body element in your Webflow Designer.

2. Set Background Image Properties

  • Click on Backgrounds in the Style panel.
  • Add a new background image by clicking on the "+" sign.
  • Upload or choose the desired background image.

3. Adjust Background Image Settings

  • Set the Position to center.
  • Choose the Size option as "Cover".
  • For Repeat, set it to "No-Repeat".
  • Set Background Attachment to "Scroll" if needed.

4. Alter Image Stretching

  • To forcibly stretch the background (not maintaining aspect ratio), utilize custom CSS:
  • Go to Page Settings of the Body.

5. Apply Custom CSS

  • In the Custom Code section of the Page settings:
  • Insert the following custom style: body { background-size: 100% 100%; }.

Summary

To have the background image stretch to fill the screen without maintaining its aspect ratio, adjust the background image settings in Webflow and apply custom CSS to set the size to 100% by 100%.

Rate this answer

Other Webflow Questions