<body>
<article>
<header>
<h1>Metamorphosis</h1>
<h2>Franz Kafka</h2>
<h3>Translated by David Wyllie</h3>
<div class="progress-bar">
</div>
</header>
<section>
<h2>I</h2>
<p>One morning, when Gregor Samsa woke from troubled dreams, he found
himself transformed in his bed into a horrible vermin. He lay on
his armour-like back, and if he lifted his head a little he could
see his brown belly, slightly domed and divided by arches into stiff
sections. The bedding was hardly able to cover it and seemed ready
to slide off any moment. His many legs, pitifully thin compared
with the size of the rest of him, waved about helplessly as he
looked.</p>
<p>"What's happened to me?" he thought. It wasn't a dream. His room,
a proper human room although a little too small, lay peacefully
between its four familiar walls. A collection of textile samples
lay spread out on the table - Samsa was a travelling salesman - and
above it there hung a picture that he had recently cut out of an
illustrated magazine and housed in a nice, gilded frame. It showed
a lady fitted out with a fur hat and fur boa who sat upright,
raising a heavy fur muff that covered the whole of her lower arm
towards the viewer.</p>
<p>Gregor then turned to look out the window at the dull weather.
Drops of rain could be heard hitting the pane, which made him feel
quite sad. "How about if I sleep a little bit longer and forget all
this nonsense", he thought, but that was something he was unable to
do because he was used to sleeping on his right, and in his present
state couldn't get into that position. However hard he threw
himself onto his right, he always rolled back to where he was. He
must have tried it a hundred times, shut his eyes so that he
wouldn't have to look at the floundering legs, and only stopped when
he began to feel a mild, dull pain there that he had never felt
before.</p>
<p>"Oh, God", he thought, "what a strenuous career it is that I've
chosen!...
CSS
body { font-size: 100%; }
h1 { font-size: 3em; }
h2 { font-size: 2em; }
h3 { font-size: 1.2em; }
/* change the way the header is styled (show it fixed to the top after scrolling n amount of pixels) */
header { margin: 0 auto 3em auto; max-width: 600px; }
/* show a progress bar that grows as the reader scrolls the page so they know how far they are in the reading see http://api.jqueryui.com/progressbar/ */
.progress-bar {}
section { margin: 0 auto; max-width: 600px; }
article p { margin: 2em 0; font-size: 1.2em; line-height: 1.8em; }
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.