jadalynstratman

Popup ask CSS

Apr 21st, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. Paste this code directly below <style type="text/css">
  2.  
  3. #fade { /*--Transparent background layer--*/
  4. display: none; /*--hidden by default--*/
  5. background: #000;
  6. position: fixed; left: 0; top: 0;
  7. width: 100%; height: 100%;
  8. opacity: .40;
  9. z-index: 9999;
  10. }
  11. .popup_block{
  12. display: none; /*--hidden by default--*/
  13. background: #fff;
  14. background-image: url();
  15. background-attachment: fixed;
  16. background-size:contain;
  17. background-position: right;
  18. padding: 20px;
  19. text-style: bold;
  20. border: 2px solid #363636;
  21. float: left;
  22. font-size: 10px;
  23. font-family: ;
  24. line-height:15px;
  25. position: fixed;
  26. top: 50%; left: 50%;
  27. z-index: 99999;
  28. /*--CSS3 Box Shadows--*/
  29. -webkit-box-shadow: 0px 0px 20px #000;
  30. -moz-box-shadow: 0px 0px 20px #000;
  31. box-shadow: 0px 0px 20px #000;
  32. /*--CSS3 Rounded Corners--*/
  33. -webkit-border-radius: 10px;
  34. -moz-border-radius: 10px;
  35. border-radius: 10px;
  36. }
  37. img.btn_close {
  38. float: right;
  39. margin: -5px -5px 0 0;
  40. }
  41. /*--Making IE6 Understand Fixed Positioning--*/
  42. *html #fade {
  43. position: absolute;
  44. }
  45. *html .popup_block {
  46. position: absolute;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment