123

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.

            
              <html>
<div id="main">
  <header>
    <h2 id="title">Tapir Tribute Page</h2>
  </header>

  <body>
    <div id="img-div">
      <img id="image" src="https://upload.wikimedia.org/wikipedia/commons/3/36/South_American_tapir_%28Tapirus_terrestris%29.JPG" />
      <figcaption id="img-caption">A Tapir</figcaption>
    </div>
    <article id="tribute-info">
      <div class="paragraph-one">
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras lobortis lorem non dolor viverra, a venenatis eros cursus. Quisque metus turpis, porttitor eget lectus vel, venenatis iaculis dui. Etiam mauris odio, porttitor ac ultricies non, tristique
          vitae sem. Aliquam placerat iaculis velit, ut interdum sapien tempor ac. Praesent in pharetra nisi. Phasellus consectetur pretium arcu, ac placerat mi eleifend in. Sed pellentesque eu ante eu tempus. Vivamus sapien urna, dictum a orci quis,
          hendrerit tincidunt libero. Vestibulum et pellentesque urna. Nam ac augue risus. Aenean malesuada tincidunt mi eu euismod. Proin condimentum ex sit amet tortor gravida scelerisque. Aenean ac orci varius orci sollicitudin fringilla vitae ut augue.
          Vestibulum laoreet lacinia lorem id imperdiet.</p>

        <p>Suspendisse sodales gravida nisi id vulputate. Nunc ullamcorper egestas euismod. Aliquam magna risus, feugiat id quam in, laoreet fermentum tellus. Donec convallis, quam vel pellentesque lacinia, dui nulla ultrices velit, sit amet feugiat quam
          elit non arcu. Praesent vestibulum, risus a mollis sodales, urna nunc vestibulum lectus, ac dapibus risus ipsum quis lectus. Suspendisse vel rutrum leo. Fusce massa ligula, tincidunt non lobortis eu, sagittis sed tellus. Interdum et malesuada
          fames ac ante ipsum primis in faucibus. Praesent at rhoncus ligula. Ut vel nulla molestie, imperdiet ipsum sed, finibus arcu. Pellentesque sagittis malesuada ultricies. Phasellus mollis nec lacus id auctor. Integer turpis justo, auctor ut magna
          efficitur, accumsan blandit mauris. Praesent eget turpis mi.
        </p>
      </div>
      <a id="tribute-link" href="https://en.wikipedia.org/wiki/Tapir" target="_blank">More Information</a>
    </article>
  </body>
</div>

</html>
            
          
!
            
              #title {
  text-align: center;
  margin-bottom: 2%;
}

#image {
  max-width: 30%;
  height: auto;
  display: block;
  margin: 0 auto;
}

#img-caption {
  margin-top: 2%;
  text-align: center;
}

.paragraph-one {
  text-align: center;
  margin-left: 1%;
  margin-right: 1%;
}

#tribute-link {
   text-align: center;
   display: block;
   margin: 0 auto;
}


            
          
!
            
              // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

// BE SURE TO SELECT THE CORRECT TEST SUITE FROM THE DROPDOWN MENU!!! :-) 

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

            
          
!
999px
🕑 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.

Console