+ 3
How can I have a sticky sidebar with CSS grid?
I want to use CSS grid for my page layout and have a sticky sidebar at the same time. I can creat the sticky sidebar without css grid, but when I use css grid, "position:sticky;" doesn't work. Is there any way to have a sticky sidebar with CSS grid? https://code.sololearn.com/Wh136GUz0818/?ref=app https://code.sololearn.com/W1mzkVtA6OgA/?ref=app
2 ответов
+ 4
I tried putting a div in <aside>, but when i give it sticky position it doesn't work, and when i give it fixed position it's not exactly the same; please check both codes to see the difference.
::sk::
+ 2
Have you tried putting them into each other as in <aside><div id="grid"/><aside> or the like of?