CSS debugging: A semi-transparent overlay should cover the viewport behind a modal.. What is the proper fix for a site header?
Problem: A semi-transparent overlay should cover the viewport behind a modal.
Context: This CSS troubleshooting question uses a site header example.
Correct approach: Use fixed positioning and full viewport insets.
Working CSS:
.overlay { position:fixed; inset:0; background:rgb(0 0 0 / .5); }
Looking for the latest
Sarkari Result 2026
updates?
Check the latest government exam
results, merit lists and result updates
on Sarkari Resultess.