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 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

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

              
                <article class="entry-content">
  
  <header class="post-header">
    <h1 class="boxed">
      <span>The Rebel Force</span>
    </h1>
    <p>Your eyes can deceive you. Don't trust them. I'm surprised you had the courage to take the responsibility yourself. Don't be too proud of this technological terror you've constructed. The ability to destroy a planet is insignificant next to the power of the Force.</p>
  </header>

  <h2 class="boxed">
    <span>Revenge of the Sith</span>
  </h2>

  <p>Hokey religions and ancient weapons are no match for a good blaster at your side, kid. You're all clear, kid. Let's blow this thing and go home! I'm trying not to, kid. Remember, a Jedi can feel the Force flowing through him.</p>

  <ul>
    <li>He is here.</li>
    <li>Dantooine. They're on Dantooine.</li>
    <li>You don't believe in the Force, do you?</li>
    <li>I care. So, what do you think of her, Han?</li>
  </ul>
  
</article>

              
            
!

CSS

              
                h1, h2, h3 {
  font-family: sans-serif;
  font-weight: normal;
  text-transform: uppercase;
}

.boxed{
	color: #000;
	overflow: hidden;
	text-align: center;
	> span{
		border: 1px solid #cccccc;     
		display: inline-block;
		padding: 0.25em 0.5em;
		position: relative;
	}
	> span:before,
	> span:after{
		border-bottom: 1px solid #cccccc;
		content: '';
		margin: 0 3px;
		position: absolute;
		top: 50%;
		width: 100%; // Line-length. 100% width is equal to width of boxed-area. 
	}
	> span:before{
		right: 100%;
	}
	> span:after{
		left: 100%;
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console