Guest User

CSS Multiple backgrounds

a guest
Aug 22nd, 2019
570
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CHAT CSS:
  2. background-color: #111111} #glu{position: absolute} #glu{top: 0} #glu{left: 0} #glu{z-index: 99} #glu{height: 110vh} embed,img,a,table:first-child{z-index: 999} *{position: relative} .btext{display:none} [height="32"]{margin-bottom: 7px} [height="32"]{padding: 2px} [height="32"]{background: #000000} [height="32"]{border-radius: 5px} table{background: transparent} .vbmenu_control,h2,strong,[height="10"]{display: none} table:first-child{background-color: rgba(1, 1, 1, 0.7);
  3.  
  4. HTML CODE:
  5. <style>  
  6. /* Credits: xLaming */  
  7. body {  
  8. background-image: url(https://i.imgur.com/0YS44jg.jpg); /* Default background */  
  9. background-repeat: no-repeat;  
  10. background-size: cover;  
  11. }  
  12. #outer1:target {  
  13. background-image: url(https://i.imgur.com/0YS44jg.jpg); /* Background 1 */  
  14. }  
  15. #outer2:target {  
  16. background-image: url(https://i.imgur.com/cXMwURj.jpg); /* Background 2 */  
  17. }  
  18. #outer3:target {  
  19. background-image: url(https://i.imgur.com/iPTxcam.jpg); /* Background 3 */  
  20. }  
  21.  
  22. .btn1 {  
  23. background-image: url(https://i.imgur.com/0YS44jg.jpg); /* Button 1 */  
  24. }  
  25. .btn2 {  
  26. background-image: url(https://i.imgur.com/cXMwURj.jpg); /* Button 2 */  
  27. }  
  28. .btn3 {  
  29. background-image: url(https://i.imgur.com/iPTxcam.jpg); /* Button 3 */  
  30. }  
  31.  
  32. #outer1,  
  33. #outer2,  
  34. #outer3 {  
  35. position: absolute;  
  36. background-position: center;  
  37. background-repeat: no-repeat;  
  38. background-size: cover;  
  39. width: 100vw;  
  40. height: 100vh;  
  41. left: 0;  
  42. top: 0%;  
  43. }  
  44.  
  45. .buttons {  
  46. position: fixed;  
  47. right: 5px;  
  48. top: 100px;  
  49. }  
  50.  
  51. .btn {  
  52. background-position: center;  
  53. background-size: cover;  
  54. width: 40px;  
  55. height: 40px;  
  56. border-radius: 10px;  
  57. margin-top: 5px;  
  58. display: block;  
  59. border: 1px solid rgba(255, 255, 255, 0.3);  
  60. }  
  61.  
  62. .fakechat {  
  63. position: absolute;  
  64. left: 50.8%;  
  65. top: 50%;  
  66. margin-top: 71px;  
  67. transform: translate(-50%, -50%);  
  68. width: 52vw;  
  69. height: 100vh;  
  70. padding: 20px;  
  71. text-align: center;  
  72. background-color: rgba(0, 0, 0, 0.5);  
  73. }  
  74. </style>  
  75.  
  76. <div id="outer1"></div>  
  77. <div id="outer2"></div>  
  78. <div id="outer3"></div>  
  79.  
  80. <div class="fakechat"></div>  
  81.  
  82. <div class="buttons">  
  83. <a href="https://xatblog.net/fixbg?b=outer1" class="btn btn1"></a>  
  84. <a href="https://xatblog.net/fixbg?b=outer2" class="btn btn2"></a>  
  85. <a href="https://xatblog.net/fixbg?b=outer3" class="btn btn3"></a>  
  86. </div>
RAW Paste Data