If you use fixed on the sidebar and set it to 100% height, it can be fixed even if you scroll, but if you have 80px headers, you will get tired of 80px minutes of space above when you scroll.
If you set the sidebar to top 0 and the header to relative and zindex to lower than the sidebar, you won't get tired of spaces, but there will be 80px of space on top.The padding is the same.
Do you have a good idea?html css
Is this what you mean?
© 2022 OneMinuteCode. All rights reserved.