Advertisement
repth

Theme 11

Sep 15th, 2021 (edited)
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Theme 11</title>
  7.  
  8. <link href="http://fonts.cdnfonts.com/css/fortyseven-micro-nbp" rel="stylesheet">
  9.  
  10. <style>
  11.  
  12. body{
  13. background-color: #aca0ce;
  14. background-image: url('https://i.imgur.com/UWhNN49.jpg');
  15. background-attachment: fixed;
  16. background-repeat: repeat-x;
  17. font-family: 'FortySeven Micro NBP', sans-serif;
  18. font-smooth: never;
  19. }
  20.  
  21. #container{
  22. width: 625px;
  23. position: fixed;
  24. top: 50%;
  25. left: 50%;
  26. transform: translate(-50%, -50%);
  27. }
  28.  
  29. #box{
  30. background-color: #bfbfbf;
  31. border: 1px outset #dfdfdf;
  32. padding: 2px 2px 15px 2px;
  33. text-align: center;
  34. }
  35.  
  36. #header{
  37. margin-bottom: 10px;
  38. background-image: linear-gradient(to right, #755f99, #9E94B3);
  39. color: #fff;
  40. font-size: 10px;
  41. }
  42.  
  43. #header h1{
  44. margin: 0px;
  45. }
  46.  
  47. #nav{
  48. margin-bottom: 10px;
  49. font-weight: bold;
  50. color: #9E94B3;
  51. }
  52.  
  53. #nav ul, li{
  54. display: inline;
  55. list-style-type: none;
  56. padding-left: 0px;
  57. }
  58.  
  59. a{
  60. text-decoration: none;
  61. color: #755f99;
  62. }
  63.  
  64. a:visited{
  65. color: #755f99;
  66. }
  67.  
  68. a:hover{
  69. color: #FFFDFA;
  70. }
  71.  
  72. #gallerycontainer{
  73. width: 608px;
  74. margin: 0 auto;
  75. }
  76.  
  77. /** LIGHTBOX MARKUP **/ /* courtesy of Gregory Schier on Codepen */
  78.  
  79. .lightbox {
  80. display: none;
  81. position: fixed;
  82. z-index: 999;
  83. top: 0;
  84. left: 0;
  85. right: 0;
  86. bottom: 0;
  87. padding: 1em;
  88. background: rgba(0, 0, 0, 0.8);
  89. }
  90.  
  91. .lightbox:target{
  92. display: block;
  93. }
  94.  
  95. .lightbox span{
  96. display: block;
  97. width: 100%;
  98. height: 100%;
  99. background-position: center;
  100. background-repeat: no-repeat;
  101. background-size: auto; /** change full image size here **/
  102. }
  103.  
  104. .overlay {
  105. position: absolute;
  106. top: 0;
  107. bottom: 0;
  108. left: 0;
  109. right: 0;
  110. height: 100%;
  111. width: 100%;
  112. opacity: 0;
  113. transition: .5s ease;
  114. background-color: #008CBA;
  115. }
  116.  
  117. #credit{
  118. font-size: 15px;
  119. position: fixed;
  120. bottom: 0;
  121. right: 0;
  122. }
  123.  
  124. </style>
  125.  
  126. </head>
  127.  
  128. <body>
  129.  
  130. <div id="container">
  131.  
  132. <div id="box">
  133.  
  134. <!-- HEADER -->
  135. <div id="header"><h1>My Gallery</h1></div>
  136.  
  137. <!-- LINKS -->
  138. <div id="nav">
  139. <ul>
  140. <li><a href="">Link 1</a> |</li>
  141. <li><a href="">Link 2</a> |</li>
  142. <li><a href="">Link 3</a> |</li>
  143. <li><a href="">Link 4</a> |</li>
  144. <li><a href="">Link 5</a> |</li>
  145. <li><a href="">Link 6</a></li>
  146. </ul>
  147. </div>
  148.  
  149. <div id="gallerycontainer">
  150.  
  151. <!-- THUMBNAILS 200x200 -->
  152. <a href="#img1"><img src="https://i.imgur.com/NMarNuq.png"><img></a>
  153. <a href="#img2"><img src="https://i.imgur.com/9fdQTrl.png"><img></a>
  154. <a href="#img3"><img src="https://i.imgur.com/AYD6C35.png"><img></a>
  155. <a href="#img4"><img src="https://i.imgur.com/vWtDT2x.png"><img></a>
  156. <a href="#img5"><img src="https://i.imgur.com/kwLddCZ.png"><img></a>
  157. <a href="#img6"><img src="https://i.imgur.com/tre98GP.png"><img></a>
  158. </div>
  159.  
  160. </div>
  161.  
  162. </div>
  163.  
  164. <!-- FULL SIZE IMAGES -->
  165.  
  166. <a href="#" class="lightbox" id="img1">
  167. <span style="background-image: url('https://i.imgur.com/H66KOhD.jpg')">
  168. </span>
  169. </a>
  170.  
  171. <a href="#" class="lightbox" id="img2">
  172. <span style="background-image: url('https://i.imgur.com/j0ucmM2.jpg')"></span>
  173. </a>
  174.  
  175. <a href="#" class="lightbox" id="img3">
  176. <span style="background-image: url('https://i.imgur.com/t2Xgc2y.jpg')"></span>
  177. </a>
  178.  
  179. <a href="#" class="lightbox" id="img4">
  180. <span style="background-image: url('https://i.imgur.com/oTenRsB.jpg')"></span>
  181. </a>
  182.  
  183. <a href="#" class="lightbox" id="img5">
  184. <span style="background-image: url('https://i.imgur.com/04RtXqu.jpg')"></span>
  185. </a>
  186.  
  187. <a href="#" class="lightbox" id="img6">
  188. <span style="background-image: url('https://i.imgur.com/E9fH9D1.jpg')"></span>
  189. </a>
  190.  
  191. <div id="credit"><a href="https://repth.neocities.org/index.html">@Repth</a></div>
  192.  
  193. </body>
  194.  
  195. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement