How do I use a CMS image as a background image for a div or section?

How do I use a CMS image as a background image for a div or section? Is this possible within Webflow?

The div should be within a collection list or template page, then check the div settings in the right panel for an option to set dynamic background from a collection image field.

Look her at 16:40

Hello this is working fine. But is it possible to get the background image to cover? I mean fill out the browser in the width?
Thanks

Kim

Same question here. I can’t see an option to pick background image cover from cms.

set it like you normally would with a normal background image and just leave the placeholder icon image…the placeholder won’t replace your cms background image but the settings will stick.

Thank you.

After playing around I’ve noticed that there is ā€œGet BG image from CMSā€ in Element settings (right panel). It overrides ā€œImage & gradientā€ and now it’s working as expected.

Before that I was trying to set container image in Style (right panel) → ā€œImage & gradientā€.

Dude PLEASE show me where this is?!
I can see a ā€˜get media from…’ that links the image as an image but no ā€˜get BG image…’
Would love some help w this.

For anyone still struggling with this the above advice is correct. You need to select the div or element you wish to draw the BG img into and then using the element settings panel set it to get BG img from collection.

Then you’ll be able to adjust things like cover on the bg img as you normally would.
It’s detailed more recently here:

One thing I can’t seem to do which seems weird is to add a gradient on top of the image. This way I can have a bg image with a gradient on top added dynamically and then my content on top of that.
Kind of annoying that I can’t find a workaround.

If anyone has any suggestions please let me know!

Was this solved for you?

I think the possible workaround would be adding a div, making absolute positioned and then giving it a negative z index. Then we can pull the image from the CMS and can add gradient or overlay. right now it’s not possible to set a bg image to a parent div or wrapper directly.

Thank You so much! This helped to solve this!

Here you go, this should help:

Apply Overlay to Background using Dynamic Style Settings? - Design help / General - Forum | Webflow

It took me awhile to figure this out, not super intuitive, but you can set this under the Element Settings panel in the right sidebar
Screen Shot 2022-03-15 at 5.27.08 PM

In case, If anyone needs to make the bg cover or contain - after adding the dynamic bg from settings then just simply click plus icon to the background image section then you can change the image position or anything else.

image

This worked like a charm! Thanks!

this video is private

Ugh!!! You’re brilliant!! Thank you! Been searching for how to do this forever!

THIS WORKED!!! It wasn’t very intuitive. I think it needs to be reworded.