css_practice_3.result.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>HTML5 Layout</title>
  5. <style type="text/css">
  6. header,
  7. section,
  8. footer,
  9. aside,
  10. nav,
  11. article,
  12. figure,
  13. figcaption {
  14. display: block;
  15. }
  16. body {
  17. color: #666666;
  18. background-color: #f9f8f6;
  19. background-image: url("images/dark-wood.jpg");
  20. background-position: center;
  21. font-family: Georgia, Times, serif;
  22. line-height: 1.4em;
  23. margin: 0px;
  24. }
  25. .wrapper {
  26. width: 940px;
  27. margin: 20px auto 20px auto;
  28. border: 2px solid #000000;
  29. background-color: #ffffff;
  30. }
  31. header {
  32. height: 160px;
  33. background-image: url(images/header.jpg);
  34. }
  35. h1 {
  36. text-indent: -9999px;
  37. width: 940px;
  38. height: 130px;
  39. margin: 0px;
  40. }
  41. nav,
  42. footer {
  43. clear: both;
  44. color: #ffffff;
  45. background-color: #aeaca8;
  46. height: 30px;
  47. }
  48. nav ul {
  49. margin: 0px;
  50. padding: 5px 0px 5px 30px;
  51. }
  52. nav li {
  53. display: inline;
  54. margin-right: 40px;
  55. }
  56. nav li a {
  57. color: #ffffff;
  58. }
  59. nav li a:hover,
  60. nav li a.current {
  61. color: #000000;
  62. }
  63. section.courses {
  64. float: left;
  65. width: 659px;
  66. border-right: 1px solid #eeeeee;
  67. }
  68. article {
  69. clear: both;
  70. overflow: auto;
  71. width: 100%;
  72. }
  73. hgroup {
  74. margin-top: 40px;
  75. }
  76. figure {
  77. float: left;
  78. width: 290px;
  79. height: 220px;
  80. padding: 5px;
  81. margin: 20px;
  82. border: 1px solid #eeeeee;
  83. }
  84. figcaption {
  85. font-size: 90%;
  86. text-align: left;
  87. }
  88. aside {
  89. width: 230px;
  90. float: left;
  91. padding: 0px 0px 0px 20px;
  92. }
  93. aside section a {
  94. display: block;
  95. padding: 10px;
  96. border-bottom: 1px solid #eeeeee;
  97. }
  98. aside section a:hover {
  99. color: #985d6a;
  100. background-color: #efefef;
  101. }
  102. a {
  103. color: #de6581;
  104. text-decoration: none;
  105. }
  106. h1,
  107. h2,
  108. h3 {
  109. font-weight: normal;
  110. }
  111. h2 {
  112. margin: 10px 0px 5px 0px;
  113. padding: 0px;
  114. }
  115. h3 {
  116. margin: 0px 0px 10px 0px;
  117. color: #de6581;
  118. }
  119. aside h2 {
  120. padding: 30px 0px 10px 0px;
  121. color: #de6581;
  122. }
  123. footer {
  124. font-size: 80%;
  125. padding: 7px 0px 0px 20px;
  126. }
  127. </style>
  128. <!--[if lt IE 9]>
  129. <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  130. <![endif]-->
  131. </head>
  132. <body>
  133. <div class="wrapper">
  134. <header>
  135. <h1>Yoko's Kitchen</h1>
  136. <nav>
  137. <ul>
  138. <li><a href="" class="current">home</a></li>
  139. <li><a href="">classes</a></li>
  140. <li><a href="">catering</a></li>
  141. <li><a href="">about</a></li>
  142. <li><a href="">contact</a></li>
  143. </ul>
  144. </nav>
  145. </header>
  146. <section class="courses">
  147. <article>
  148. <figure>
  149. <img src="images/bok-choi.jpg" alt="Bok Choi" />
  150. <figcaption>Bok Choi</figcaption>
  151. </figure>
  152. <hgroup>
  153. <h2>Japanese Vegetarian</h2>
  154. <h3>Five week course in London</h3>
  155. </hgroup>
  156. <p>
  157. A five week introduction to traditional Japanese vegetarian meals, teaching you a selection of rice and noodle
  158. dishes.
  159. </p>
  160. </article>
  161. <article>
  162. <figure>
  163. <img src="images/teriyaki.jpg" alt="Teriyaki sauce">
  164. <figcaption>Teriyaki Sauce</figcaption>
  165. </figure>
  166. <hgroup>
  167. <h2>Sauces Masterclass</h2>
  168. <h3>One day workshop</h3>
  169. </hgroup>
  170. <p>
  171. An intensive one-day course looking at how to create the most delicious sauces for use in a range of Japanese
  172. cookery.
  173. </p>
  174. </article>
  175. </section>
  176. <aside>
  177. <section class="popular-recipes">
  178. <h2>Popular Recipes</h2>
  179. <a href="">Yakitori (grilled chicken)</a>
  180. <a href="">Tsukune (minced chicken patties)</a>
  181. <a href="">Okonomiyaki (savory pancakes)</a>
  182. <a href="">Mizutaki (chicken stew)</a>
  183. </section>
  184. <section class="contact-details">
  185. <h2>Contact</h2>
  186. <p>
  187. Yoko's Kitchen<br>
  188. 27 Redchurch Street<br>
  189. Shoreditch<br>
  190. London E2 7DP
  191. </p>
  192. </section>
  193. </aside>
  194. <footer>
  195. &copy; 2011 Yoko's Kitchen
  196. </footer>
  197. </div>
  198. </body>
  199. </html>