Menu icon Foundation
Sticky- but only if smaller than screen

Hello,

i am new to Foundation and i am using a sticky as a sidebar. It works perfectly on large screens. But if the sidebar is taller than the browser window the lower parts are hidden for users. Therefore i thought it would be good to just "stick" the container if the browser window is higher than the sidebar content...

I could solve this with a little javascript, but i wonder if there is already a solution around?

Best,

Kilian

sticky

Hello,

i am new to Foundation and i am using a sticky as a sidebar. It works perfectly on large screens. But if the sidebar is taller than the browser window the lower parts are hidden for users. Therefore i thought it would be good to just "stick" the container if the browser window is higher than the sidebar content...

I could solve this with a little javascript, but i wonder if there is already a solution around?

Best,

Kilian

Kilian D. 10 months ago

(i am getting a lot of javascript errors when posting... i hope there is no double post though)

Kilian D. 9 months ago

yes, this is the reason for forums :D