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.

            
              <div id="main">
  <main>
    <div>
      <h1 id="title">Hawai'i:  Purely Paradise</h1></div>
    <figure id="img-div" class="aligncenter">
      <img id="image" src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/Hawaje-NoRedLine.jpg/1200px-Hawaje-NoRedLine.jpg" alt="Hawai'i from satellite">
      <figcaption id="img-caption">A view of Hawai'i from a satellite. Source:  </figcaption>
    </figure>
    <section id="tribute-info">
      <h2>Hawai'i is...</h2>
      <p>An absolutely amazing place!  I am a Hawaiian-at-heart and I have my grandparents to thank for it.  They took our family to Hawai'i for their 50th wedding anniversary and I instantly fell in love.  I later built a Hawai'i-related website in highschool, was a member of a Hawai'i message board for a few years, and was stationed there for four years.  Someday I'm moving back for good.</p>
      
      <h2>Basic Facts</h2>
      <p><ul><li><strong>State Flower:</strong> Yellow hibiscus (      pua ma‘o hau hele; Hibiscus brackenridgei)  </li>
      <li><strong>State Bird:</strong> Hawaiian goose (nene; Branta 
sandvicensis
)</li>
      <li><strong>State Tree: </strong> Candlenut (kukui; Aleurites mo-luccana)</li>
      <li><strong>State Song:</strong> Hawaii Pono‘i</li>
      <li><strong>State Seal & Motto:</strong> Ua mau ke ea o ka ‘aina i ka pono (The life of the land is perpetuated in righteousness)</li>
      </ul></p>
    
    <h2>Notes</h2>
      <p><ul><li>Hawai'i is a state in the United States of America.  If you're referring to the contiguous 48 states, call it the "mainland."  Don't stay "back in the United States" or "back in the states."</li>
    <li>Don't stand on the coral</li>
    <li>Don't approach hono (sea turtles) or seals.  They are endangered</li>
    <li>Things move on Hawai'i time.  Slow down and enjoy yourself!</li>
    <li>Everyone that lives in Hawai'i is <i>not</i> Hawaiian.  That term is referred to those with Hawaiian ancestry.</li>
      </ul></p>
    </section>
    
  </main>
  
  <footer>Learn More About Hawai'i:  
    <ul>
      <li><a id="tribute-link" href="" target="_blank" title="">https://en.wikipedia.org/wiki/Hawaii</a></li>
      <li><a href="http://www.ksbe.edu/assets/ks_official_facts_and_statistics.pdf" target="_blank" title="">Kamehameha Schools Facts and Statistics</a></li>
      <li><a href="http://dbedt.hawaii.gov/economic/library/facts/" target="_blank" title="State of Hawai'i Facts and Figures">State of Hawai'i Facts and Figures</li>
    </ul>
    
  </footer>
  
</div>
            
          
!
            
              html {
  color: #d7ffef;
  background: #004c00;
  font-size: 1.2em;
}

h1 {
  text-align: center;
}
footer {
  background: rgba(215,255,239, 0.1);
  text-align: left;
  width: 400px;
  margin: 0 auto;
  padding: 10px 10px;
}
footer a {
  color: #50c9ce;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
#image {
  margin: 0 auto;
  text-align: center;
}

main {
    width: 60%;
    margin: 0px auto;
    padding: 0px 25px;
}
#img-caption {
  float: right;
}
            
          
!
            
              // !! 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. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// 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.
Loading ..................

Console