DEV Community


Discussion on: How to make a sticky sidebar with two lines of CSS

tombrown profile image

correction on my last post, which I don't see now so not sure if it was sent.

I removed the width components on sidebar and main with no change on functionality, not the height. I changed the main height to 100vh for my scenario and its works fine, but the sidebar height has to be at least 150vh in order for this to work.