Streaming live at 10am (PST)

Adding A Background Image to a Section but it dissapears


#1

I keep adding a background image to a section and it just disappears when I publish it.

Can someone please help me figure this out.

https://preview.webflow.com/preview/integratepayments?preview=0ae3281ae5c2f227ece063063c47b68c

It is in the middle of the two sections and the class is called payment gateway design

Thanks,

Jibby


Here is my public share link: LINK
(how to access public share link)


#2

Give the div a height attribute. (75px).
in CSS an empty div has no height (0px). A background image behaves the same.
Webflow props open divs so you can easily drag and drop or select it, but if a div has no content or padding and no height attribute it collapses to 0px high when published.

That should solve it! :smile:


#3

That worked perfectly.

Thank You so much !

Jibby


#4

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.