Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <h1 id="title">Dr. Charles Darwin

<body id="main">
  <p>The man that revolutionized the world</p>
  <figure class="picture" id="image-div">
  <img id="image" src="" alt="a picture of dr. Charles Dawin">
  <figcaption id="img-caption">
  A picture of Dr. Charles Darwin
    <section id="trubute-info">
      <h3>Here's a timeline of the life and achievements of Dr. Charles Darwin</h3> 
        <li><strong>1809</strong> - Born in England</li>
        <li><strong>1831</strong> - Darwin graduates as one of the top ten students in biology and physics</li>
        <li><strong>1831</strong> - Darwin starts his famous journey on the Beagle with captain Robert Fitzroy</li>
      <h4> If you have the time you should read more about the man who changed the way we see our past at <a id="tribute-link" href="" target="_blank">Wikipedia entry.</a></h4>


                html {
font-size: 20px;
text-align: center;
background-color: lightgrey;

#main {
  font-size: 1.5rm;
  font-family: libre-baskerville, cabin;
  border-radius: 8px;
  text-align: center;

h1 {
  font-size: 8rm;

#img-div {
  background: white;
  padding: 0;
  margin: 0;
  border-radius: 5px;
  text-align: center;

#img-caption {
  background: lightgrey;
  color: white;
  padding: 0px;
  margin: 0px;

#image {
  max-width: 100%;
  display: block;
  height: auto;
  margin: 10px;
  border-radius: 8px;
  text-align: center;

ul {
  max-width: 400px;
  margin: 0 auto 50px;
  text-align: left;
  line-height: 1.6;

li {
  margin: 10px;