Streaming live at 10am (PST)

Change width of container on scroll (Header)


I have a navigation in place.
There is an inner div that has a width of 1560px.

When scrolling starts the width of this container should go to 100%.
I’m trying to get this done, but I’m struggling to get it right.

Read only link:

Thanks in advance!

@Yatsuba You can size “%” to “%”, but not sure if you can size “px” to “%”.

Thank Matthias,

I adjusted both the values to be the same variables. Now it works.