Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <!--
Based on: https://www.free-css.com/free-css-templates/page121/tardy
-->
<div class="wrapper">
  
  <header class="top-menu">
    <h1 class="logo">Site Title</h1>
    <nav class="navbar">
      <a href="#">Home</a>
      <a href="#">Home</a>
      <a href="#">Home</a>
      <a href="#">Home</a>
    </nav>
  </header>
  
  <div class="content-wrapper">
    <main>
      <h2>Page Title</h2>
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptate fugit quibusdam facilis obcaecati? Quasi alias veniam maiores nisi molestiae sed ea odit quia ut! Cumque ut aspernatur maiores quibusdam commodi.</p>
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptate fugit quibusdam facilis obcaecati? Quasi alias veniam maiores nisi molestiae sed ea odit quia ut! Cumque ut aspernatur maiores quibusdam commodi.</p>
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptate fugit quibusdam facilis obcaecati? Quasi alias veniam maiores nisi molestiae sed ea odit quia ut! Cumque ut aspernatur maiores quibusdam commodi.</p>
    </main>
    <aside class="sidebar">
      <h3>Donate</h3>
      <p>If you think you like this one, you might want to donate any amount</p>
    </aside>
  </div>
  
  <footer>
    <p>© Copyright 2009 <a href="#">Name Here</a> - All Rights Reserved | Design by <a href="http://tamad.net">Tamad.Net</a></p>
  </footer>
  
</div>
              
            
!

CSS

              
                /*
This requires more explicit credits than my other theme remakes
because I copied some of the styles from the original template
verbatim:
https://www.free-css.com/free-css-templates/page121/tardy
*/

:root {
  --text-color: #050204;
  --page-width: 960px;
  --page-bg: #ededed;
}

body {
  color: var(--text-color);
  background-color: var(--page-bg);
  font-family: 'myriad pro', verdana, sans-serif;
}

h1, h2, h3 {
  margin: 0.7rem 0;
}

.wrapper {
  max-width: var(--page-width);
  margin: 0 auto;
}

.top-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  border-bottom: 3px solid #050204;
  margin-bottom: 2rem;
}

.logo {
  font-size: 200%;
  margin: 0; padding: 1rem 0;
}

.navbar {
  display: flex;
  font-style: italic;
}

.navbar a {
  color: inherit;
  text-decoration: none;
  margin: 0 1.5rem;
}

.content-wrapper {
  display: flex;
}

.content-wrapper main {
  width: 70%;
}

.content-wrapper aside {
  width: 30%;
}

.sidebar h3 {
  font-size: 130%;
  font-weight: bold;
}

footer {
  margin-top: 2rem;
  font-size: 80%;
}
              
            
!

JS

              
                
              
            
!
999px

Console