Design Interview 4

Using HTML and CSS make the include markup look as close as possible to the included image.

by Ronen Hirsch

HTML

<!-- Open the following image in a new tab/window:

https://s3.amazonaws.com/ridingtheclutch.com/images/moby_dick.png

Your task is to start with the HTML below and end up with something that looks as close as possible to that image.

You may change the structure of the HTML (add/remove tags and attributes) but not the content itself. For example, you could change the tag or add a class to "<h1>Chapter 1</h1>" but you can't change the text itself to "CHAPTER 1" to make it all caps—you'll need to do that with CSS (if you can!).

This is your chance to show your HTML5 chops and make this markup as semantic as you see fit.

To submit your answer, click "Fork" above and give us the URL.
-->
<section>
<h1>Chapter 1</h1>
<h2>Loomings</h2>
<article>
<p class="first">Call me Ishmael. Some years ago—never mind how long precisely—having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way I have of driving off the spleen and regulating the circulation. Whenever I find myself growing grim about the mouth; whenever it is a damp, drizzly November in my soul; whenever I find myself involuntarily pausing before coffin warehouses, and bringing up the rear of every funeral I meet; and especially whenever my hypos get such an upper hand of me, that it requires a strong moral principle to prevent me from deliberately stepping into the street, and methodically knocking people's hats off—then, I account it high time to get to sea as soon as I can. This is my substitute for pistol and ball. With a philosophical flourish Cato throws himself upon his sword; I quietly take to the ship. There is nothing surprising in this. If they but knew it, almost all men in their degree, some time or other, cherish very nearly the same feelings towards the ocean with me.</p>

<img src="https://s3.amazonaws.com/ridingtheclutch.com/images/moby_dick_inset.jpg">
    
<p>There now is your...

CSS

<!-- CSS here -->

section {
  width:400px;
  font-family:"New Times Roman",serif;
}
article {
  font-family:"New Times Roman",serif;
}
h1, h2 {
  text-align:center;
  font-family:"New Times Roman",serif;
}

h1 {
  text-transform:uppercase;
  font-size:18px;
  font-weight:normal;
}

h2 {
  font-weight:bold;
  font-size:21px;
}
p {
  line-height:1.4em;
}
p.first::first-letter {
  font-size:3.5em;
  float:left;
  margin-top:-10px;
  margin-right:4px;
}

img {
  float:left;
  width:50%;
  margin-right:1em;
  margin-bottom:0.8em;
}

blockquote {
  float:right;
  padding:0.8em;
  margin: 0 0 0 1em;
  font-style:italic;
  font-size:1.1em;
  background-color:#ddd;
  width:40%;
  box-sizing:border-box;
}

JavaScript

// No Javascript required, but if you want to show off somehow...