Today I have encounterd a problem in css. I created a div named as main and its childrens is nav and box, in the box i have putted some content. when I fixed nav applying its poistion in css as fixed and also scrolling is going good but in the top and the bottom of the main box a spacing or gap is appearing I don’t know the reason why this happening. I’m beginner please help me.
I was expecting that the bottom and top gap not be there but after many tries it didn’t fixed. Please help me to get out of the problem. I’m beginner.
2
Answers
can you share your code? It would help a lot.
But basically you edit children like this.
}.
This code is just example.
It’s bit difficult to give the exact solution as you haven’t posted the code.
I suggest the following.