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

              
                <!--
Recreation of:
http://textly.tumblr.com/
-->

<div class="container">
  
  <section class="sidebar">
    
    <div class="avatar">
      <p>&nbsp;</p>
      <img src="https://via.placeholder.com/200">
    </div>
    
    <div class="profile">
      This is my profile text. I am too sexy for my shirt; so sexy it hurts.
    </div>
  </section>
  
  <section class="main">
    <article class="post">
      <div class="content">
<p>Hac lectus. Montes. Dignissim amet ridiculus fermentum Ad mus odio feugiat ante et. Nulla ultricies felis lacus porttitor hac. Porta magnis dis Felis. Et.</p>
<p>Conubia nulla mus lobortis convallis euismod primis vivamus. Ante lectus. Malesuada nam.</p>
<p>Suspendisse bibendum nulla parturient varius placerat dis torquent vestibulum sagittis rhoncus praesent aenean tristique.</p>
      </div>
      <div class="tags">
        <a class="tag" href="#">Sample Tag</a>
        <a class="tag" href="#">Another Tag</a>
      </div>
    </article>
    <article class="post">
      <div class="content">
        <h2>Sample Title</h2>
<p>Hac lectus. Montes. Dignissim amet ridiculus fermentum Ad mus odio feugiat ante et. Nulla ultricies felis lacus porttitor hac. Porta magnis dis Felis. Et.</p>
<p>Conubia nulla mus lobortis convallis euismod primis vivamus. Ante lectus. Malesuada nam.</p>
      </div>
    </article>
  </section>
</div>
              
            
!

CSS

              
                /* default to border-box */

html { box-sizing: border-box; }
* { box-sizing: inherit; }

/* base content styling */

body {
  font-family: sans-serif;
  color: #111;
  background-color: #F2E8E4;
}

img {
  max-width: 100%;
}

/* main layout */

.container {
  display: table-row;
}

.container > section {
  display: table-cell;
}

/* sidebar styling */

.sidebar {
  width: 30%;
}

.sidebar .avatar, .sidebar .profile {
  border-radius: 10px;
  background-color: #ddd;
  margin-bottom: 2em;
  padding: 0.75em;
  
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* main content styling */

.main {
  padding: 2em;
}

.post {
  margin-bottom: 2em;
  margin-left: auto;
  margin-right: auto;
  
  width: 90%;
}

.post .content {
  background-color: #e8e0dc;
  border: 1px solid black;
  padding: 1em;
}

.tags {
  padding-top: 5px;
  text-align: center;
}

.tag {
  color: #85144b;
  text-decoration: none;
  margin-right: 1em;
}

.tag::before {
  content: '# ';
}


              
            
!

JS

              
                
              
            
!
999px

Console