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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <div class="wrap">
  <img src="http://lorempixel.com/618/225/nature" alt="Image">
    <div>
      <h1><a href="#">What kind of a useless title is this? Huh!</a></h1>
      <p>In this experiment the aim is to understand the properties of the three types of radiation: alpha, beta and gamma. This involves two different experiments that test the penetrating power and their range in air. To ensure fairness, the following sources used only emit that particular type of radiation:
</p>
  <p>Before any <a href="#">some link</a> experiment, we must collect the background count so that we may subtract later on in our finding. The first experiment setup was to determine the penetrating power of these sources. This involved the source being placed a fixed distance using a clamp stand from the material that was being tested.</p>
      <a href="#" class="more">Continue Reading &rarr;</a>
    </div>
</div>
              
            
!

CSS

              
                body{background: #efefef; font-family: -apple-system,  "Helvetica Neue"; font-size: 14px; line-height: 21px; color: #afafaf; font-weight: 200; letter-spacing: 0.05em; text-align: justify;}
.wrap {
  background: white;
  width: 618px;
  margin: 30px auto;
  box-shadow: 0 0 0 10px rgba(0,0,0,0.03), inset 0 0 0 10px rgba(0,0,0,0.03);
  border: solid 1px rgba(0,0,0,0.1);
}

.wrap div {padding: 40px 80px; overflow: hidden;}

h1, p {margin: 0 0 30px 0;}
h1 {line-height: 32px;}
a {color: dodgerblue; text-decoration: none;}
.wrap .more {float: right;}
              
            
!

JS

              
                
              
            
!
999px

Console