Everything is good until the page has to scroll and then the background also seems to scroll as well.
I'm not really sure how to fix this. I get that the initial height of the div is h-screen. But why does only the background seem to scroll, but the contents don't? Any clues as to what I've setup wrong or why that is happening?
If it helps a few more details:
My body tag:
body(class="bg-gray-100 leading-normal tracking-normal mt-16")
The main content area that is below the top navbar:
div(class="flex flex-col md:flex-row")
I have a sidebar using this styling on the div:
Which looks like this:
Everything is good until the page has to scroll and then the background also seems to scroll as well.
I'm not really sure how to fix this. I get that the initial height of the div is
h-screen
. But why does only the background seem to scroll, but the contents don't? Any clues as to what I've setup wrong or why that is happening?If it helps a few more details:
My body tag:
body(class="bg-gray-100 leading-normal tracking-normal mt-16")
The main content area that is below the top navbar:
div(class="flex flex-col md:flex-row")