Site logo

Archived topic

How do you get only one container sticky ?

3 replies · Started by Rudy on March 15, 2023

Viewing posts 1–4 of 4

Hello,

I tried following all the threads on this forum about this particular subject but I didn't manage to do it.

I have a flex-container with several other containers inside, and I'd like to have only one of these container to be sticky and follow the scroll of my reader.

Can you tell me how I could achieve this effect please ?

Hi Rudy,

Select the flex container which is the parent of the sticky-container, and set its align-items to flex-start.

Thank you very much, it worked perfectly :)

Glad to hear that :)

This archived topic is closed to new replies.