Twitter clone problem

Someone please help me fix my bug here!šŸ˜© I basically want the Column-3 to stop scrolling at the end of the footer links while the column-2 still scrolls just as it is on Twitter desktop view. I know this is achievable using JS but unfortunately for me, I havenā€™t learnt JS. So is there a way I can get this solution using css alone?? This is my code https://codepen.io/Creatorjihm/pen/ZEVVebj Iā€™ve reduced the code as minimum as possible. It should behave just like this
10 Replies
Saagy
SaagyOPā€¢14mo ago
Please help someonešŸ˜©ā€¦
MarkBoots
MarkBootsā€¢14mo ago
No, nothing comes to mind in how to it solve in css. I think they are recalculating the top and bottom margin of that column, based on the body scroll position. So with JS.
Saagy
SaagyOPā€¢14mo ago
Damnā€¦thatā€™s just the remaining piece of the whole puzzlešŸ˜” Ig I canā€™t showcase as a completed project until Iā€™ve learnt and implemented JavaScript on it All the same, thanks for the helpšŸ™šŸ½
C_7
C_7ā€¢14mo ago
You can try this. This is the problem of html and css layout.
Saagy
SaagyOPā€¢14mo ago
Thanksā€¦Iā€™ll check it out and drop a feedback! I just tried this solution but the result wasnā€™t as such that I wantedā€¦from this solution the col-2 and col-3 scrolled individually, hence they all stopped at the end of their contents(individually). Meanwhile the result I wanted was to control both col-2 and col-3 with same scroll (they should scroll together) but when col-3 hits the end of its content, it should stop scrolling while the col-2 continues scrolling until it gets to the end of its content. I hope this is understandable! All the same, thanks for the solution as Iā€™ll just make use of it since Iā€™ll have to get the real result using JS which I havenā€™t gotten knowledge ofā€¦Iā€™ll probably update it in the future after learning JS
Zoƫ
ZoĆ«ā€¢14mo ago
It's 4AM for me and so there's likely some issues with it and I know it doesn't handle when screens get shorter or taller well (it's fine as soon as you scroll but to be fair Twitter doesn't handle it either). You may want to listen for resize events Edit: I just viewed on mobile and I realise I didnā€™t cap the margin and if I pull the screen down the sidebar can go off the screen fixed with a clamp
Saagy
SaagyOPā€¢14mo ago
@z- ::theProblemSolver:: you strictly made use of JS which I havenā€™t gotten knowledge ofā€¦ Iā€™ll just have to pause the project until Iā€™ve gotten some JS basics at least Thanks for the help anywayšŸ™šŸ½
Zoƫ
ZoĆ«ā€¢14mo ago
Like others have pointed out itā€™s not possible without JS
Want results from more Discord servers?
Add your server