+ 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
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
+ 8
Nice code. You instagram jquery is outdated btw