Advertisement
Guest User

modal css

a guest
Nov 13th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. /* MODAL TEST */
  2. /* The Modal (background) */
  3. .modal {
  4. display: none; /* Hidden by default */
  5. position: fixed; /* Stay in place */
  6. z-index: 1; /* Sit on top */
  7. left: 0;
  8. top: 0;
  9. width: 100%; /* Full width */
  10. height: 100%; /* Full height */
  11. overflow: auto; /* Enable scroll if needed */
  12. background-color: rgb(0,0,0); /* Fallback color */
  13. background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  14. }
  15.  
  16. /* Modal Content/Box */
  17. .modal-content {
  18. background-color: #fefefe;
  19. margin: 15% auto; /* 15% from the top and centered */
  20. padding: 20px;
  21. border: 1px solid #888;
  22. width: 80%; /* Could be more or less, depending on screen size */
  23. }
  24.  
  25. /* The Close Button */
  26. .close {
  27. color: #aaa;
  28. float: right;
  29. font-size: 28px;
  30. font-weight: bold;
  31. }
  32.  
  33. .close:hover,
  34. .close:focus {
  35. color: black;
  36. text-decoration: none;
  37. cursor: pointer;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement