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

              
                <article>
  <h1>England youngsters reaping rewards of pathway at Under-19 Euros</h1>
  <p>
    Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore,
    voluptatem incidunt voluptas nobis placeat facilis commodi laboriosam
    similique id veritatis molestias, dignissimos praesentium, autem tenetur
    consequatur beatae itaque. Ipsa, iure.
  </p>
  <img src="https://images.unsplash.com/photo-1553778263-73a83bab9b0c?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1000&q=80" alt="generic photo" />
  <p>
    Mollitia delectus sit expedita nobis, nostrum est porro soluta earum
    accusamus! Architecto quae quas aliquid voluptatum rem alias voluptate
    quo quidem, delectus adipisci ipsum sunt maxime officia esse magni
    inventore?
  </p>
  <p>
    Saepe impedit magnam vero sed dolor dicta ipsum. Unde officia nihil
    voluptatum natus velit tempore delectus rerum! Corrupti vero officiis
    temporibus, illo repellat aut, ducimus quis numquam error sunt vitae?
  </p>
  <p>
    Qui rem quas voluptates optio saepe delectus, porro explicabo
    necessitatibus dolorem ratione officiis aperiam perspiciatis numquam
    repellendus doloremque hic assumenda autem iure dolore fuga rerum velit
    quis. Sequi, praesentium inventore.
  </p>
  <p>
    Magni pariatur deserunt, in fugiat fuga alias necessitatibus, ducimus
    mollitia corporis sunt quia delectus numquam! Ex magnam, sed recusandae
    quasi, quos illum natus itaque repellat maxime optio velit ipsa commodi.
  </p>
</article>
              
            
!

CSS

              
                article {
  max-width: 900px;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  margin: 0 auto;
}

img {
  width: 300px;
  float: inline-start;
  margin-inline-end: 10px;
}

              
            
!

JS

              
                
              
            
!
999px

Console