Opaque window with CSS


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #opaque {
  2. position: fixed;
  3. top: 0px;
  4. left: 0px;
  5. width: 100%;
  6. height: 100%;
  7. z-index: 1000;
  8. display: none;
  9. background-color: black;
  10. filter: alpha(opacity=30);
  11. opacity: 0.3;
  12. }
  13. * html #opaque {
  14. position: absolute;
  15. }

URL: http://www.electrictoolbox.com/grey-out-webpage/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.