Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.88 KB | None | 0 0
  1. <!doctype html>
  2. +<html lang="en">
  3. + <head>
  4. + <title>module2-solution</title>
  5. + <meta charset="utf-8">
  6. + <meta name="viewport" content="width=device-width, initial-scale=1">
  7. +<style>
  8. +/********** base style **********/
  9. +* {
  10. + box-sizing: border-box;
  11. +}
  12. +body {
  13. + font-family: sans-serif;
  14. + margin: 0;
  15. + font-size: 16px/18px;
  16. +}
  17. +
  18. +h1{
  19. + text-align: center;
  20. + font-size: 175%;
  21. + margin: 0;
  22. + margin-top: 25px;
  23. + margin-bottom: 20px;
  24. + text-shadow: 2px 2px 10px #bbb;
  25. + color: #191922;
  26. +}
  27. +h2 {
  28. + display: inline-block;
  29. + border: 1px solid black;
  30. + padding: 5px;
  31. + font-size: 125%;
  32. + width: 150px;
  33. + text-align: center;
  34. + margin-top: -13px;
  35. + margin-bottom: 0;
  36. + position: absolute;
  37. + right: -1px;
  38. + top: 12px;
  39. + color: #fff;
  40. +}
  41. +.chicken {
  42. + background-color: #ff8c38;
  43. +}
  44. +.chicken:hover {
  45. + background-color: #fff;
  46. + color: #ff8c38;
  47. + cursor: pointer;
  48. +}
  49. +.beef {
  50. + background-color: #913232;
  51. +}
  52. +.beef:hover {
  53. + background-color: #fff;
  54. + color: #913232;
  55. + cursor: pointer;
  56. +
  57. +}
  58. +.sushi {
  59. + background-color: #369818;
  60. +}
  61. +.sushi:hover {
  62. + background-color: #fff;
  63. + color: #369818;
  64. + cursor: pointer;
  65. +}
  66. +
  67. +
  68. +.section {
  69. + background-color: #ebebeb;
  70. + border: 1px solid black;
  71. + position: relative;
  72. + min-height: 200px;
  73. + margin-right: 15px;
  74. + margin-left: auto;
  75. + margin-bottom: 15px;
  76. + padding: 20px;
  77. + padding-top: 35px;
  78. + box-sizing: border-box;
  79. + min-width: 300px;
  80. + overflow: hidden;
  81. +
  82. +}
  83. +
  84. +
  85. +/************* Responsive framework *************/
  86. +.row {
  87. + width: 100%;
  88. + margin: 0;
  89. + padding: 15px;
  90. +
  91. +}
  92. +/************* Desktop Only *************/
  93. +@media (min-width: 992px) {
  94. + .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12{
  95. + float: left;
  96. + }
  97. + .col-lg-1 {
  98. + width: 8.33%;
  99. + }
  100. + .col-lg-2 {
  101. + width: 16.66%;
  102. + }
  103. + .col-lg-3 {
  104. + width: 25%;
  105. + }
  106. + .col-lg-4 {
  107. + width: 33%;
  108. + }
  109. + .col-lg-5 {
  110. + width: 41.66%;
  111. + }
  112. + .col-lg-6 {
  113. + width: 50%;
  114. + }
  115. + .col-lg-7 {
  116. + width: 58.33%;
  117. + }
  118. + .col-lg-8 {
  119. + width: 66.66%;
  120. + }
  121. + .col-lg-9 {
  122. + width: 74.99%;
  123. + }
  124. + .col-lg-10 {
  125. + width: 83.33%;
  126. + }
  127. + .col-lg-11 {
  128. + width: 91.66%;
  129. + }
  130. + .col-lg-12 {
  131. + width: 100%;
  132. + }
  133. +}
  134. +
  135. +/************* Tablets Only *************/
  136. +@media (min-width: 768px) and (max-width: 991px) {
  137. + .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12{
  138. + float: left;
  139. + }
  140. + .col-md-1 {
  141. + width: 8.33%;
  142. + }
  143. + .col-md-2 {
  144. + width: 16.66%;
  145. + }
  146. + .col-md-3 {
  147. + width: 25%;
  148. + }
  149. + .col-md-4 {
  150. + width: 33%;
  151. + }
  152. + .col-md-5 {
  153. + width: 41.66%;
  154. + }
  155. + .col-md-6 {
  156. + width: 50%;
  157. + }
  158. + .col-md-7 {
  159. + width: 58.33%;
  160. + }
  161. + .col-md-8 {
  162. + width: 66.66%;
  163. + }
  164. + .col-md-9 {
  165. + width: 74.99%;
  166. + }
  167. + .col-md-10 {
  168. + width: 83.33%;
  169. + }
  170. + .col-md-11 {
  171. + width: 91.66%;
  172. + }
  173. + .col-md-12 {
  174. + width: 100%;
  175. + }
  176. +}
  177. + </style>
  178. + </head>
  179. +
  180. + <body>
  181. +
  182. + <h1>Our Menu</h1>
  183. + <div class="row">
  184. + <div class="col-lg-4 col-md-6">
  185. + <div class="section">
  186. + <h2 class="chicken">Chicken</h2>
  187. + <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Totam, molestias, cumque! Odio illum quisquam sint porro exercitationem natus in consectetur blanditiis sunt, dolor aliquam magnam necessitatibus nobis mollitia quo obcaecati!</p>
  188. + </div>
  189. + </div>
  190. + <div class="col-lg-4 col-md-6">
  191. + <div class="section">
  192. + <h2 class="beef">Beef</h2>
  193. + <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptas ipsa quae dolorem tempora nulla hic earum maiores debitis, dolore modi, ratione consequuntur rerum enim dicta nobis deleniti quos, expedita obcaecati.</p>
  194. + </div>
  195. + </div>
  196. + <div class="col-lg-4 col-md-12">
  197. + <div class="section">
  198. + <h2 class="sushi">Sushi</h2>
  199. + <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid, consequuntur. Accusamus suscipit soluta expedita, deserunt itaque hic, aperiam, cumque beatae maxime labore consectetur cum aliquid dicta iste cupiditate incidunt quasi.</p>
  200. + </div>
  201. + </div>
  202. + </div>
  203. + </body>
  204. +
  205. +</html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement