Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title>HTML5 Layout</title>
- <!--[if lt IE 9]>
- <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
- <style>
- * {
- box-sizing: border-box;
- }
- body {
- background-image: url(images/dark-wood.jpg);
- font-family: 'Bookman Old Style', sans-serif;
- }
- .wrapper {
- margin: 0 auto;
- max-width: 960px;
- border: 1px solid black;
- background-color: ghostwhite;
- }
- .topheader {
- background-image: url(images/header.jpg);
- height: 150px;
- }
- nav {
- padding-top: 115px;
- }
- ul {
- margin: 0;
- padding-top: 7px;
- height: 35px;
- display: block;
- background-color: #888888;
- position: relative;
- }
- ul > li {
- display: inline-block;
- position: inherit;
- }
- ul > li > a {
- text-decoration: none;
- color: black;
- background-color: #808080;
- border: 2px groove transparent;
- padding: 5px;
- border-radius: 10px;
- font-size: 18px;
- position: inherit;
- }
- ul > li > a:hover {
- background-color: white;
- border: 2px solid black;
- }
- ul > li > a:focus {
- color: white;
- background-color: lightgray;
- }
- article > figure {
- width: 45%;
- float: left;
- display: inline-block;
- border: .5px solid gray;
- padding: 5px;
- margin: 10px;
- margin-left: 20px;
- }
- figcaption {
- padding-left: 5px;
- }
- img {
- width: 100%;
- }
- .courses {
- width: 70%;
- display: inline-block;
- border-right: .2px solid lightgrey;
- }
- aside {
- display: inline-block;
- width: 30%;
- padding-left: 8px;
- float: right;
- }
- .textpart {
- margin-top: 20px;
- padding-right: 15px;
- width: 45%;
- display: inline-block;
- float: right;
- }
- article {
- display: inline-block;
- margin: auto;
- padding-top: 25px;
- padding-bottom: 15px;
- width: 100%;
- }
- section > a {
- width: 75%;
- text-decoration: none;
- color: plum;
- font-size: 18px;
- margin-left: 20px;
- padding: 5px;
- padding-left: 15px;
- border-bottom: .1px solid grey;
- display: inline-block;
- text-align: left;
- }
- section > a:hover {
- background-color: #efeeee;
- }
- .popular-recipes {
- color: plum;
- }
- .popular-recipes h2 {
- margin-left: 25px;
- margin-bottom: 10px;
- }
- hgroup > h2 {
- margin: 0;
- }
- h2 {
- font-size: 22px;
- }
- h3 {
- color: plum;
- margin: 0;
- }
- #dropdown {
- background-color: transparent;
- display: none;
- position: absolute;
- margin-top: 6.5px;
- padding: 0;
- width: 270px;
- }
- #dropdown li {
- margin: 0;
- list-style: none;
- color: black;
- background-color: #808080;
- border: 2px groove transparent;
- padding: 5px;
- border-radius: 10px;
- width: 33.3%;
- float: left;
- }
- #dropdown > li:hover {
- background-color: white;
- border: 2px solid black;
- }
- #dropdown li a {
- font-size: 16px;
- margin: 0;
- text-decoration: none;
- color: black;
- }
- ul > li:hover > #dropdown {
- display: inline-block;
- }
- .contact-details {
- margin-top: 50px;
- margin-left: 20px;
- line-height: 1.4;
- }
- .contact-details > h2 {
- color: plum;
- }
- footer {
- display: block;
- background-color: #888888;
- height: 35px;
- padding-left: 15px;
- padding-top: 8px;
- color: white;
- }
- </style>
- </head>
- <body>
- <div class="wrapper">
- <header class="topheader">
- <nav>
- <ul>
- <li><a href="">home</a></li>
- <li>
- <a href="">classes</a>
- <ol id="dropdown">
- <li><a href="">1st class</a></li>
- <li><a href="">2nd class</a></li>
- <li><a href="">3rd class</a></li>
- </ol>
- </li>
- <li><a href="">catering</a></li>
- <li><a href="">about</a></li>
- <li><a href="">contact</a></li>
- </ul>
- </nav>
- </header>
- <section class="courses">
- <article>
- <figure>
- <img src="images/bok-choi.jpg" alt="Bok Choi" />
- <figcaption>Bok Choi</figcaption>
- </figure>
- <div class="textpart">
- <hgroup>
- <h2>Japanese Vegetarian</h2>
- <h3>Five week course in London</h3>
- </hgroup>
- <p>A five week introduction to traditional Japanese vegetarian meals, teaching you a selection of rice and noodle dishes.</p>
- </div>
- </article>
- <article>
- <figure class="">
- <img src="images/teriyaki.jpg" alt="Teriyaki sauce" />
- <figcaption>Teriyaki Sauce</figcaption>
- </figure>
- <div class="textpart">
- <hgroup>
- <h2>Sauces Masterclass</h2>
- <h3>One day workshop</h3>
- </hgroup>
- <p>An intensive one-day course looking at how to create the most delicious sauces for use in a range of Japanese cookery.</p>
- </div>
- </article>
- </section>
- <aside>
- <section class="popular-recipes">
- <h2>Popular Recipes</h2>
- <a href="">Yakitori (grilled chicken)</a>
- <a href="">Tsukune (minced chicken patties)</a>
- <a href="">Okonomiyaki (savory pancakes)</a>
- <a href="">Mizutaki (chicken stew)</a>
- </section>
- <section class="contact-details">
- <h2>Contact</h2>
- <p>
- Yoko's Kitchen<br />
- 27 Redchurch Street<br />
- Shoreditch<br />
- London E2 7DP
- </p>
- </section>
- </aside>
- <footer>
- © 2011 Yoko's Kitchen
- </footer>
- </div><!-- .wrapper -->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement