Pen Settings

HTML

CSS

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

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

HTML

              
                <html>
  <head>
    <link href="https://fonts.googleapis.com/css?family=Great+Vibes" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"/>
  </head>
  
<body>
  <div class="container">
    
      <header>
      <div class="row">
        <div class="col-lg-12"><h1 class="page-title">Epicurus and Epicureanism</h1></div>
  
          <img class="title-image" src="https://upload.wikimedia.org/wikipedia/commons/1/14/Epicurus_bust2.jpg" alt="Roman bust of Epicurus"/><!--  Image attribution:           
    By Interstate295revisited at English Wikipedia - Transferred from en.wikipedia to Commons by Jayantanth using CommonsHelper., Public Domain, https://commons.wikimedia.org/w/index.php?curid=9398837"-->
      </div>
    </header>
    <article style="max-width: 60%; margin: auto;">
      <p>
        Epicurus, born in the Athenian settlement of Samos in 341 BCE, was an ancient Hellenistic philosopher and founder of Epicureanism.  He served two years in the Athenian military, moving to Colophon after his service.  There he studied under Nausiphanes and went on to teach in Mytilene, subsequently founding a school in Lampsacus, and then the famous <i>Garden</i> in Athens.  He  remained in Athens until his death in 270 BCE.
      </p>
      <p>
        What remains of Epicurus' writings is found in letters and accounts from his contemporaries.  His philosophy comprised of atomist themes, elements of hedonism, and the achievement of <i>ataraxia</i> through the pursuit of pleasure to reduce suffering.
      </p>
      <p>
        To learn more about Epicurus and Epicureanism from the source of this article, please follow the link below.
      </p>
      <aside>
        <a href="https://en.wikipedia.org/wiki/Epicurus">Wikipedia Article on Epicurus&nbsp;<i class="fa fa-link"></i></a><br><br>
      </aside>
    </article>
    
  </div>
</body>
</html>
              
            
!

CSS

              
                .page-title {
  font-family: Great Vibes;
  font-size: 500%;
  margin: 8% 0 6% 0;
  padding: 20px;
  text-align: center;
  background-color: rgb(244, 244, 244);
  box-shadow: 10px 10px 8px grey;
  position: relative;
}

.title-image {
  position: absolute;
  max-width: 18%;
}

              
            
!

JS

              
                
              
            
!
999px

Console