Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. <form method="post" name="testform" action="#">
  2.  
  3. <a href="#modal"> <!-- when the input textbox was clicked, modal will pop up -->
  4. <input readonly type="text" name="txt1" placeholder="inputTest">
  5. </a>
  6.  
  7. <div class="modalwrapper" id="modal"> <!-- modal -->
  8. <div class="modalcontainer">
  9. <div class="modalcol1">
  10. <label>Test 1</label>
  11. <input type="checkbox" name="test_modal[]" value="1">
  12. <div class="clear"></div>
  13. <label>Test 2</label>
  14. <input type="checkbox" name="test_modal[]" value="2">
  15. <div class="clear"></div>
  16. <label>Test 3</label>
  17. <input type="checkbox" name="test_modal[]" value="3">
  18. <div class="clear"></div>
  19. <label>Test 4</label>
  20. <input type="checkbox" name="test_modal[]" value="4">
  21. <div class="clear"></div>
  22. <label>Test 5</label>
  23. <input type="checkbox" name="test_modal[]" value="5">
  24. <div class="clear"></div>
  25.  
  26. <div class="savebutton">
  27. <button class="btn1" type="button" value="Submit">Submit</button>
  28. </div>
  29. </div> <!-- close modalcol1 -->
  30. </div> <!-- close modalcontainer -->
  31. <div class="overlay"></div>
  32. </div> <!-- close modalwrapper -->
  33. </form>
  34.  
  35. /* modal layout */
  36. .modalwrapper {
  37. top: 0;
  38. left: 0;
  39. opacity: 0;
  40. position: absolute;
  41. visibility: hidden;
  42. box-shadow: 0 3px 7px rgba(0,0,0,.25);
  43. box-sizing: border-box;
  44. transition: all .4s ease-in-out;
  45. -webkit-transition: all .4s ease-in-out;
  46. -moz-transition: all .4s ease-in-out;
  47. }
  48.  
  49. .modalwrapper:target {
  50. opacity: 1;
  51. visibility: visible
  52. }
  53.  
  54. .overlay {
  55. background-color: #000;
  56. background: rgba(0,0,0,.8);
  57. height: 100%;
  58. left: 0;
  59. position: fixed;
  60. top: 0;
  61. width: 100%;
  62. z-index: 1;
  63. }
  64.  
  65. .modalcontainer {
  66. display: table;
  67. background-color: #777;
  68. position: relative;
  69. z-index: 100;
  70. color: #fff;
  71. padding: 5px;
  72. }
  73.  
  74. .modalcol1 { display: table-cell; }
  75.  
  76. .clear { clear: both; }
  77.  
  78. .modalwrapper input[type=checkbox] {
  79. float: right;
  80. margin-right: 20px;
  81. }
  82.  
  83. .savebutton input[type=submit] {
  84. float: right;
  85. background-color: maroon;
  86. color: #fff;
  87. border: none;
  88. padding: 5px 10px;
  89. margin-top: 5px;
  90. margin-right: 20px;
  91. }
  92. /* modal layout ends here */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement