onediewreckshun

popup ask css

Mar 9th, 2013
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.92 KB | None | 0 0
  1. .popup_block{
  2.  
  3. border:1px solid #fff; /*the #fff (white) is for whatever color you want the border to be and the 1px is for how thick you want the border to be*/
  4.  
  5. border-radius:5px;
  6.  
  7. display: none;
  8.  
  9. background: #fff; /*background color is #fff*/
  10.  
  11. padding-top: 20px;
  12.  
  13. padding-bottom: 20px;
  14.  
  15. padding-left: 40px;
  16.  
  17. padding-right: 40px;
  18.  
  19. float: left;
  20.  
  21. position: fixed;
  22.  
  23. top: 50%;
  24.  
  25. left: 50%;
  26.  
  27. z-index: 9999999999999999999999999999999999999999;
  28.  
  29. }
  30.  
  31. img.btn_close {/*the close button*/
  32.  
  33. background-color:#fff;
  34.  
  35. padding:1px;
  36.  
  37. float: right;
  38.  
  39. margin-top:-20px;
  40.  
  41. margin-bottom:-20px;
  42.  
  43. margin-right:0px;
  44.  
  45. left:20px;
  46.  
  47. }
  48.  
  49. *html #fade {
  50.  
  51. position: absolute;
  52.  
  53. }
  54.  
  55. *html .popup_block {
  56.  
  57. position: absolute;
  58.  
  59. }
  60.  
  61. #fade {
  62.  
  63. background-color:#000;
  64.  
  65. display: none; /*--hidden by default--*/
  66.  
  67. position: fixed; left: 0; top: 0; width: 100%; height: 100%;
  68.  
  69. opacity: .6;
  70.  
  71. z-index: 9999;  
  72.  
  73. }
Advertisement
Add Comment
Please, Sign In to add comment