Advertisement
Guest User

Untitled

a guest
May 25th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. <style type="text/css">
  2. .modalDialog {
  3. ;
  4. font-family: Arial, Helvetica, sans-serif;
  5. top: 0;
  6. right: 0;
  7. bottom: 0;
  8. left: 0;
  9. background: rgba(0,0,0,0.8);
  10. z-index: 99999;
  11. opacity:0;
  12. -webkit-transition: opacity 400ms ease-in;
  13. -moz-transition: opacity 400ms ease-in;
  14. transition: opacity 400ms ease-in;
  15. pointer-events: none;
  16. }
  17. .modalDialog:target {
  18. opacity:1;
  19. pointer-events: auto;
  20. }
  21. .modalDialog > div {
  22. width: 400px;
  23. ;
  24. margin: 10% auto;
  25. padding: 5px 20px 13px 20px;
  26. border-radius: 10px;
  27. background: #fff;
  28. background: -moz-linear-gradient(#fff, #999);
  29. background: -webkit-linear-gradient(#fff, #999);
  30. background: -o-linear-gradient(#fff, #999);
  31. }
  32. .close {
  33. background: #606061;
  34. color: #FFFFFF;
  35. line-height: 25px;
  36. ;
  37. right: -12px;
  38. text-align: center;
  39. top: -10px;
  40. width: 24px;
  41. text-decoration: none;
  42. font-weight: bold;
  43. -webkit-border-radius: 12px;
  44. -moz-border-radius: 12px;
  45. border-radius: 12px;
  46. -moz-box-shadow: 1px 1px 3px #000;
  47. -webkit-box-shadow: 1px 1px 3px #000;
  48. box-shadow: 1px 1px 3px #000;
  49. }
  50. .close:hover { background: #00d9ff; }
  51.  
  52. </style>
  53.  
  54. <a href="#openModal">Open Modal​​​</a> <div class="modalDialog" id="openModal"><div><a title="Close" class="close" href="#close">X</a> <h2>Modal Box</h2>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement