A sidebar layout needs fixing because A header should remain attached to the viewport while the page scrolls.. What CSS should be added?
Problem: A header should remain attached to the viewport while the page scrolls.
Context: This CSS troubleshooting question uses a sidebar layout example.
Correct approach: Use position:fixed and reserve space for the header in the layout.
Working CSS:
.header { position:fixed; inset:0 0 auto; z-index:1000; }
Looking for the latest
Sarkari Result 2026
updates?
Check the latest government exam
results, merit lists and result updates
on Sarkari Resultess.