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 id="main">
  
 
  <h1 id="title">Lola the Labradoodle</h1>
  <h2 id="subtitle">The goofiest runt of the litter you could find!</h2>
  <div id="img-div">
    <img id="image" src="https://res.cloudinary.com/dtvtvg95a/image/upload/v1588572965/Lola_puppy_sitting_13Dec18_iurxld.jpg" alt="Black Labradoodle puppy sitting & looking directly into the camera - very cute!">

    <figcaption id="img-caption">Lola looking winsome after a wet walk</figcaption>
  </div>

<div id="tribute-info">
<h3>Key things to know about Lola:</h3>
  <ul>
    <li>She is an Australian Labradoodle.</li>
    <li>She has a super-fancy pedigree name, but at home she's known as Lola, or Schnookums.</li>
    <li>She is very friendly, but scared of metal drain covers.</li>
    <li>Sometimes she loves her food, other times she can leave it for hours.</li>
    <li>She loves to chew sticks.</li>
    <li>She knows only one command really well: sit.</li>
    <li>Depending on what's going on, she will understand sit to mean stop, drop the ball / stick, let me take away whatever's in your mouth, or many other things.  Occassionally, she actually sits down.</li>
      <li>When she doesn't like what you're asking her to do, she will show you that by doing it in super-slow mo!</li>
  </ul>
  </div>
    
<p id="tribute-link-text">
  For more information about Australian Labradoodles click <a id="tribute-link" target="_blank" href="http://www.laa.org.au">here
  </a>.
  </p>
 
</div>

<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
              
            
!

CSS

              
                #title {
  text-align: center;
}

#subtitle {
  text-align: center;
}

#image {
  display: block;
  margin: auto;
  max-width: 40%;
  height: auto;
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  }

#img-caption {
  text-align: center;
  position: relative;
  top: 10px;
}

#tribute-info {
  text-align: justify;
  width: 90%;
  position: relative;
  left: 50px;
  top: 20px;
  line-height: 25px;
}

#tribute-link-text {
  position: relative;
  top: 20px;
}
a:hover {
  color: red;
}
              
            
!

JS

              
                
              
            
!
999px

Console