help with this layout thing
Attached are 2 images, NavBar is at top of the screen, component A is somewhere on the screen ( left image ). After scrolling, component A sticks below NavBar ( right image ). My only idea is that NavBar would have sticky and top-0, but how do i make the layout work for component A without hard coding?
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1226390768629841980/image.png)
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1226390768957132800/image.png)
0 Replies