Portanto, tenho um problema que considero bastante comum, mas ainda não encontrei uma boa solução para ele. Quero fazer um div de sobreposição cobrir toda a página ... NÃO apenas a janela de visualização. Eu não entendo porque isso é tão difícil de fazer ... Eu tentei definir o corpo, as alturas do html para 100% etc, mas não está funcionando. Aqui está o que tenho até agora:
<html>
<head>
<style type="text/css">
.OverLay { position: absolute; z-index: 3; opacity: 0.5; filter: alpha(opacity = 50); top: 0; bottom: 0; left: 0; right: 0; width: 100%; height: 100%; background-color: Black; color: White;}
body { height: 100%; }
html { height: 100%; }
</style>
</head>
<body>
<div style="height: 100%; width: 100%; position: relative;">
<div style="height: 100px; width: 300px; background-color: Red;">
</div>
<div style="height: 230px; width: 9000px; background-color: Green;">
</div>
<div style="height: 900px; width: 200px; background-color: Blue;"></div>
<div class="OverLay">TestTest!</div>
</div>
</body>
</html>
Eu também estaria aberto a uma solução em JavaScript, se houver, mas prefiro usar um CSS simples.