css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

  <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        <a class="navbar-brand" href="#">Project name</a>
      <div id="navbar" class="navbar-collapse collapse">

  <!-- Main jumbotron for a primary marketing message or call to action -->
  <div class="jumbotron">
    <div class="container">
      <h1>Hello, world!</h1>
      <p>This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
      <p><a class="btn btn-primary btn-lg" href="second.html" role="button">Learn more &raquo;</a></p>

  <div class="container">
    <!-- Example row of columns -->
    <div class="row">
      <div class="col-md-12">
        <img src="https://www-league.nhlstatic.com/builds/site-core/147f3d122fed9d7ba04711f44a8731f6a01d5a50_1516829540/images/logos/team/current/team-26-secondary-light.svg">
        <h1>Los Angeles Kings Hockey</h1>
        <p id="para1" class="odd">Paragraph 1</p>
        <p id="para2" class="even">Paragraph 2</p>
        <p id="para3" class='odd'>Paragraph 3</p>
        <p id="para4" class='even'>Paragraph 4</p>
        <a href="https://www.nhl.com/kings">Official Website</a>
          <p>Github repository: <a href="https://github.com/SpaceShot/wctd">https://github.com/SpaceShot/wctd</a></p>
    <div class="row">
      <div class="col-md-4">
        <h2>Sample Unordered List</h2>
        <p>This column has a sample <a href="http://htmlreference.io/element/ul/">unordered list</a> in it. Use it in your own site with the &lt;ul&gt; tag<br> Cause: <br>
            <li>Item #1</li>
            <li>Item #2</li>
            <li>This is Item #3</li>
            <li>This is the final Item #4</li>
        <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p>
      <div id="purpleColumn" class="col-md-4">
        <h2>Changing background color</h2>
        <p>The background color of this column was changed with css.</p>
      <div class="col-md-4">
        <h2>Button Link to New Page</h2>
        <p>Click the button in this column to see a second page that just has a simple wall of text. You might use this for
          your information pages on the site.</p>
        <p><a class="btn btn-default" href="second.html" role="button">View details &raquo;</a></p>
    <div class="row">
            <div class="col-md-8">
        <h2>More resources for you</h2>
        <p>Other sites to learn from:</p>
        <h4>From Khan Academy</h4>
        <p><a href="https://www.khanacademy.org/computing/computer-programming/html-css">Intro to HTML/CSS: Making webpages</a><br>
        Sign up for a Khan Academy account to earn points and badges</p>
          <h4>Using CodePen (Videos)</h4>
          <a href="https://www.youtube.com/watch?v=aRYKzcQSGDQ&list=PLykHO9jIZ9xf77vXbRIjhSqDKoqOKkC-M&index=1">Signing up for CodePen</a>
          <a href="https://www.youtube.com/watch?v=VJw_9cyr0vI">Intro to CodePen: Part 1 (HTML)</a><br>
          <a href="https://www.youtube.com/watch?v=QWODB684vhw">Intro to CodePen: Part 2 (starting CSS)</a><br>
          <a href="https://www.youtube.com/watch?v=jgB5ncR4ygA">Intro to CodePen: Part 3 (basic JavaScript)</a><br>
          <h4>We Connect The Dots Resources on CodePen</h4>
          <a href="https://codepen.io/collection/XbwbgE/#">CodePen Collection</a><br>
          <a href="https://codepen.io/SpaceShot/pen/GrrKBE">This site as a pen (on CodePen.io)</a>
      <div class="col-md-4">


      <p>&copy; Chris Gomez 2015-2017</p>
              .jumbotron {
  background: url(https://www-league.nhlstatic.com/builds/site-core/147f3d122fed9d7ba04711f44a8731f6a01d5a50_1516829540/images/logos/team/current/team-26-secondary-light.svg);
  background-color: gray;
  color: whitesmoke;
  text-shadow: 1px 1px 1px darkslategray;

.jumbotron h1 {
  text-align: center;

#purpleColumn {
  background-color: mediumpurple;

body {
  padding-top: 50px;
  padding-bottom: 20px;
  font-family: cursive;

.odd {
  color: red;
  font-family: sans-serif;

.even {
  color: green;

Author's custom styles
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................