Advertisement
HTML

2columnlayout-assignment.html ver. 2

Feb 6th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.58 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>2 Column Gallery - Jacob Howard</title>
  5. <meta charset="utf-8">
  6. <style>
  7. body {
  8.             background:#000066;
  9. }
  10. footer {
  11.             text-align:center;
  12.             font-style:italic;
  13.             background-color:#CCCCFF;
  14.             clear:both;
  15. }
  16. h1 {
  17.             margin:0;
  18.             padding:10px;
  19. }
  20. header {
  21.             background:#CCCCFF;
  22. }
  23.  
  24. img {
  25.             max-width:100%;
  26.             max-height:100%;
  27.             margin:0;
  28.             padding:0;
  29. }
  30. main {
  31.             margin-left:100px;
  32.             padding:10px;
  33.             background-color:#FFF;
  34.             overflow:auto;
  35. }
  36. nav {
  37.             float:left;
  38.             width:195px;
  39.             padding:10px;
  40. }
  41. nav a {
  42.             text-decoration:none;
  43.             padding-right:10px;
  44. }
  45. nav button {
  46.             background:#FFF;
  47.             color:#000066;
  48.             margin:5px;
  49.             width:90px;
  50.             height:45px;
  51.             font-size:1.2em;
  52.             border:2px solid #000066;
  53.             -moz-transition:all .2s ease-in;
  54.             -o-transition:all .2s ease-in;
  55.             -webkit-transition:all .2s ease-in;
  56. }
  57. nav button:hover, nav button.current {
  58.             background:#000066;
  59.             color:#FFF;
  60. }
  61. nav ul {
  62.             list-style-type:none;
  63. }
  64. * {
  65.             box-sizing:border-box;
  66. }
  67. .galleryitem {
  68.             border:0px solid #000;
  69.             max-width:30%;
  70.             width:30%;
  71.             height:275px;
  72.             margin:3px 3px 0px 3px;
  73.             float:left;
  74.             vertical-align:top;
  75. }
  76. #gallery {
  77.             margin-left:auto;
  78.             margin-right:auto;
  79. }
  80. #wrapper {
  81.             width:1024px;
  82.             margin-left:auto;
  83.             margin-right:auto;
  84.             background:#EAEAEA;
  85. }
  86. </style>
  87. </head>
  88. <body>
  89. <div id="wrapper">
  90. <header>
  91. <h1>Gallery of Cute Cats</h1>
  92. </header>
  93. <nav>
  94. <ul>
  95. <li><a href="2columnlayout.html"><button class="current">Home</button></a></li>
  96. <li><a href="#"><button>Page 1</button></a></li>
  97. <li><a href="#"><button>Page 2</button></a></li>
  98. </ul>
  99. </nav>
  100. <main>
  101. <h2>A lovely gallery of pictures of cute cats I found online</h2>
  102. <p>These are some adorable cats that I found online and I think that they're very cute.</p>
  103. <div id="gallery">
  104. <div id="div1" class="galleryitem">
  105. <img src="cat/cat1.jpg">
  106. </div>
  107. <div id="div2" class="galleryitem">
  108. <img src="cat/cat2.jpg">
  109. </div>
  110. <div id="div3" class="galleryitem">
  111. <img src="cat/cat3.jpg">
  112. </div>
  113. <div id="div4" class="galleryitem">
  114. <img src="cat/cat4.jpg">
  115. </div>
  116. <div id="div5" class="galleryitem">
  117. <img src="cat/cat5.jpg">
  118. </div>
  119. <div id="div6" class="galleryitem">
  120. <img src="cat/cat6.jpg">
  121. </div>
  122. <div id="div7" class="galleryitem">
  123. <img src="cat/cat7.jpg">
  124. </div>
  125. <div id="div8" class="galleryitem">
  126. <img src="cat/cat8.jpg">
  127. </div>
  128. <div id="div9" class="galleryitem">
  129. <img src="cat/cat9.jpg">
  130. </div>
  131. </div>
  132. </main>
  133. <footer>
  134. &copy; Jacob Howard 2018
  135. </footer>
  136. </div>
  137. </body>
  138. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement