Adding CSS overlay when Javascript is disabled

This is a CSS overlay, I usually use jquery validation but when there’s no javascript and don’t want to add another code just give this to header… Done…

[code]

HTML

<noscript>
<div>
<h1 style=”padding: auto; color : #fff;margin : 261px auto; width : 500px;height: 300px”>Your Browser JavaScript is not enabled. Please enable to continue</h1>
</div>
</noscript>

CSS

.noscript_overlay {
position:fixed;
top:0px;
text-align: center;
left:0px;
z-index:3000;
height:100%;
width:100%;
background: rgb(0, 0, 0) transparent;
background: rgba(0, 0, 0, 0.6);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);
-ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);

}
[/code]