Advertisement
iamjohnrex03

28368633

Jun 26th, 2025
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. /* Main Box Content */
  2. .modalBox {
  3. position:fixed;
  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. color:black;
  11. z-index:99999;
  12. opacity :0;
  13. -webkit-transition:opacity 400ms ease-in;
  14. -moz-transition:opacity 400ms ease-in;
  15. transition:opacity 400ms ease-in;
  16. pointer-events:none;
  17. }
  18. /* Style for target elements */
  19. .modalBox:target {
  20. opacity: 1;
  21. pointer-events: auto;
  22. }
  23. /* Positioning of the child box */
  24. .modalBox>div {
  25. width:400px;
  26. position:relative;
  27. margin:10% auto;
  28. padding:5px 20px 13px 20px;
  29. border-radius:0px;
  30. background:white;
  31. }
  32. /* Positioning and style of the close button */
  33. .close {
  34. background:white;
  35. color:black;
  36. line-height:25px;
  37. position:absolute;
  38. right:1px;
  39. text-align:center;
  40. top:1px;
  41. width:35px;
  42. text-decoration:none;
  43. font-weight:bold;
  44. -webkit-border-radius:12px;
  45. -moz-border-radius:12px;
  46. border-radius:12px;
  47. -moz-box-shadow:1px 1px 3px #000;
  48. -webkit-box-shadow:1px 1px 3px #000;
  49. box-shadow:none;
  50. border:none;
  51. }
  52. /* Style when mouse hovers on the close button */
  53. .close:hover {
  54. background:black;
  55. color:white;
  56. }
  57. /* Default style of the open button */
  58. .button {
  59. background-color:black;
  60. border:none;
  61. color:white;
  62. padding:2px 10px;
  63. text-align:center;
  64. text-decoration:none;
  65. display:inline-block;
  66. font-size:16px;
  67. margin:4px 2px;
  68. cursor:pointer;
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement