Need help with my code!!! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

Need help with my code!!!

actually I'm struggling to get the contents of the main div to have overflow=scroll without affecting anything else... Need someone to help me out with this... here's my code: https://code.sololearn.com/W3I8vzwC5p7c/?ref=app

18th May 2018, 8:08 PM
Ayush
Ayush - avatar
2 Answers
+ 10
You need to add height on your content div like this. Else you content div will keep go longer and longer and the overflow will not be applied .content { overflow-y: auto; height: calc(100% - 35px); } minus the footer height 35px
18th May 2018, 8:35 PM
Toni Isotalo
Toni Isotalo - avatar
+ 8
Nice code. You instagram jquery is outdated btw
18th May 2018, 8:43 PM
Toni Isotalo
Toni Isotalo - avatar