daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .modal {
  2.     text-align: center;
  3. }
  4. .modal:before {
  5.     display: inline-block;
  6.     vertical-align: middle;
  7.     content: " ";
  8.     height: 100%;
  9. }
  10. .modal-dialog {
  11.     display: inline-block;
  12.     text-align: left;
  13.     vertical-align: middle;
  14. }
  15.    
  16. .modal {
  17.         }
  18.         .vertical-alignment-helper {
  19.             display:table;
  20.             height: 100%;
  21.             width: 100%;
  22.         }
  23.         .vertical-align-center {
  24.             /* To center vertically */
  25.             display: table-cell;
  26.             vertical-align: middle;
  27.         }
  28.         .modal-content {
  29.             /* Bootstrap sets the size of the modal in the modal-dialog class, we need to inherit it */
  30.             width:inherit;
  31.             height:inherit;
  32.             /* To center horizontally */
  33.             margin: 0 auto;
  34.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top