Advertisement
mrihavenoideapls

Gallery Format

Mar 6th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.22 KB | None | 0 0
  1. <html>
  2. <head>
  3. <meta name="viewport" content="width=device-width, initial-scale=1">
  4. <style>
  5. * {box-sizing: border-box;}
  6.  
  7. body {
  8. background-image: claret.jpg;
  9. margin: 0;
  10. font-family: Arial;
  11. }
  12.  
  13. .header {
  14. overflow: hidden;
  15. background-color: red;
  16. padding: 20px 10px;
  17. }
  18.  
  19. .header a {
  20. float: left;
  21. color: black;
  22. text-align: center;
  23. padding: 12px;
  24. text-decoration: none;
  25. font-size: 18px;
  26. line-height: 25px;
  27. border-radius: 4px;
  28. }
  29.  
  30. .header a.logo {
  31. font-size: 25px;
  32. font-weight: bold;
  33. }
  34.  
  35. .header a:hover {
  36. background-color: #ddd;
  37. color: black;
  38. }
  39.  
  40. .header a.active {
  41. background-color: dodgerblue;
  42. color: white;
  43. }
  44.  
  45. .header-right {
  46. float: right;
  47. }
  48.  
  49. @media screen and (max-width: 500px) {
  50. .header a {
  51. float: none;
  52. display: block;
  53. text-align: left;
  54. }
  55. .header-right {
  56. float: none;
  57. }
  58. }
  59.  
  60. div.gallery {
  61. margin: 5px;
  62. border: 1px solid #ccc;
  63. float: left;
  64. width: 180px;
  65. }
  66.  
  67. div.gallery:hover {
  68. border: 1px solid #777;
  69. }
  70.  
  71. div.gallery img {
  72. width: 100%;
  73. height: auto;
  74. }
  75.  
  76. div.desc {
  77. padding: 15px;
  78. text-align: center;
  79. }
  80.  
  81. </style>
  82. </head>
  83. <body>
  84.  
  85. <div class="header">
  86. <a href="PeTa.html" class="logo"><img src="http://www.claretschool.edu.ph/images/schoollogo/logoweb.png"></a>
  87. <div class="header-right">
  88. <a href="PeTa.html">Home</a>
  89. <a href="PetaGallery.html">Gallery</a>
  90. <a href="PeTaContact.html">Contact</a>
  91. <a href="#about">Application</a>
  92. </div>
  93. </div>
  94.  
  95. <div style="padding-left:20px">
  96. <h1>Gallery</h1>
  97. <p>Resize the browser window to see the effect.</p>
  98. <p>Some content..</p>
  99. </div>
  100.  
  101. <div class="gallery">
  102. <a target="_blank" href="fjords.jpg">
  103. <img src="http://www.claretschool.edu.ph/images/schoollogo/logoweb.png" alt="Fjords" width="300" height="200">
  104. </a>
  105. <div class="desc">Add a description of the image here</div>
  106. </div>
  107.  
  108. <div class="gallery">
  109. <a target="_blank" href="forest.jpg">
  110. <img src="http://www.claretschool.edu.ph/images/schoollogo/logoweb.png" alt="Forest" width="300" height="200">
  111. </a>
  112. <div class="desc">Add a description of the image here</div>
  113. </div>
  114.  
  115. <div class="gallery">
  116. <a target="_blank" href="lights.jpg">
  117. <img src="http://www.claretschool.edu.ph/images/schoollogo/logoweb.png" alt="Northern Lights" width="300" height="200">
  118. </a>
  119. <div class="desc">Add a description of the image here</div>
  120. </div>
  121.  
  122. <div class="gallery">
  123. <a target="_blank" href="mountains.jpg">
  124. <img src="http://www.claretschool.edu.ph/images/schoollogo/logoweb.png" alt="Mountains" width="300" height="200">
  125. </a>
  126. <div class="desc">Add a description of the image here</div>
  127. </div>
  128. <div class="gallery">
  129. <a target="_blank" href="fjords.jpg">
  130. <img src="http://www.claretschool.edu.ph/images/schoollogo/logoweb.png" alt="Fjords" width="300" height="200">
  131. </a>
  132. <div class="desc">Add a description of the image here</div>
  133. </div>
  134. <div class="gallery">
  135. <a target="_blank" href="fjords.jpg">
  136. <img src="http://www.claretschool.edu.ph/images/schoollogo/logoweb.png" alt="Fjords" width="300" height="200">
  137. </a>
  138. <div class="desc">Add a description of the image here</div>
  139. </div>
  140. <div class="gallery">
  141. <a target="_blank" href="fjords.jpg">
  142. <img src="http://www.claretschool.edu.ph/images/schoollogo/logoweb.png" alt="Fjords" width="300" height="200">
  143. </a>
  144. <div class="desc">Add a description of the image here</div>
  145. </div>
  146. <div class="gallery">
  147. <a target="_blank" href="fjords.jpg">
  148. <img src="http://www.claretschool.edu.ph/images/schoollogo/logoweb.png" alt="Fjords" width="300" height="200">
  149. </a>
  150. <div class="desc">Add a description of the image here</div>
  151. </div>
  152. <div class="gallery">
  153. <a target="_blank" href="fjords.jpg">
  154. <img src="http://www.claretschool.edu.ph/images/schoollogo/logoweb.png" alt="Fjords" width="300" height="200">
  155. </a>
  156. <div class="desc">Add a description of the image here</div>
  157. </div>
  158. <div class="gallery">
  159. <a target="_blank" href="fjords.jpg">
  160. <img src="http://www.claretschool.edu.ph/images/schoollogo/logoweb.png" alt="Fjords" width="300" height="200">
  161. </a>
  162. <div class="desc">Add a description of the image here</div>
  163. </div>
  164.  
  165.  
  166. </body>
  167. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement