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

              
                <main id="id-main">

  <h1 id="title">Behind the Feathers</h1>

  <p img="img-caption">Why we need birds more than they need us</p>

  <div id="img-div">
    <img id="image" src="https://i.pinimg.com/736x/4f/f7/70/4ff7701f1c94a05a78cf7d35e6efa964.jpg" alt="Animals Moodboard: Big Birds">

  </div>

  <h3 id="tribute-info">Seven reasons birds are essential to our lives</h3>

  <div id="list-info">

    <ul>

      <li>Birds control pests, eating about 400-500 million tons of insects a year</li>

      <li>Birds pollinate plants</li>

      <li>Birds are nature's clean-up crew</li>

      <li>Birds spread seeds through their droppings when they travel</li>

      <li>Birds transform entire landscapes</li>

      <li>Birds keep coral reefs alive by feeding from the ocean and later fertilize the reef with their guano</li>

      <li>Birds inspire scientists, from planes to bullet trains.</li>
    </ul>
  </div>

  <h3>Peek your beak into how <a id="tribute-link" href="https://www.birdlife.org/worldwide/news/why-we-need-birds-far-more-they-need-us" target="_blank">bird life</a> affects our lives</h3>

</main>
              
            
!

CSS

              
                #title {
  background-color: hsl(82, 90%, 45%);
  color: #ffff;
}

#img-div {
  background: linear-gradient(0deg, green, yellow, pink, rgb(101, 204, 25));
}

#image {
  display: center;
  max-width: 100%;
  height: auto;
  width: 400px;
}

p {
  font-size: 21px;
}

#id-main {
  text-align: center;
  background-color: (181, 208, 232);
  padding: 15px;
  margin: 0px;
  background: #ffe6e6;
}

#tribute-info {
  color: blue;
  font-size: 22px;
}

#tribute-link {
  color: blue;
}

#list-info {
  font-size: 20px;
  text-align: left !important;
}

ul {
  line-height: 1.6;
}

              
            
!

JS

              
                
              
            
!
999px

Console