Streaming live at 10am (PST)

Problem with custom code


#1

The background images in my div do not respond to height size when I change device orientation until I refresh the mobile browser. This has never happen before. This issue also happens on the desktop browser when I resize it.

See : https://webflow.com/design/myastymin?preview=d3d182d9699d7b1e12db01671969a064


#2

I need support response to this issue. It is stalling my work.


#3

Hi @topelovely, thanks for the post and sorry to hear about the trouble, let me take a look at this, and I will try to see what the issue is.

Can you tell me which page and which element has the background image you are reporting ? I see many pages and many elements, so I am not sure where to look smile

Thanks, Dave smile


#4

The index page. The elements with image . landingenius-slider


#5

Because it's not in the background, you embedded an image in the div.

There's a difference. Make a class for the slider and use the background property if you want an image in the background.


#6

i have a js that converts the image into a background image for the slider in runtime. I have successfully ran this stuff on other webflow site I have built without hassles.

See it here: myastmin.webflow.com (Use the developer tool to check and you will see that the image is a background-image for the slider container). You may be wondering why. Web flow limitation of not supporting page css and centralising all css in one file is not practical for CMS, because I will have to be editing the css file every time I export my code. This images will have to dynamically pulled and I can achieve that easy due to reason mentioned earlier.


#7

Well good luck. Seems like this is more of an issue with the JS rather than Webflow.


#8

Yeah. Looked at my js setup again and it is fixed. Thanks for knocking my head.


#9

Anyway, still having this behaviour. Just wish Webflow next release will allow "page css" and the option to "limit pages to export".


#10

If you're exporting it why not just add it post export to the page header?


#11

Thanks RickK. I solved it finally by setting the height in px across the sliders.


#12