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

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

<link href="https://fonts.googleapis.com/css?family=Nothing+You+Could+Do&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Amiri&display=swap" rel="stylesheet">
<!-- start -->
<main id="main">
  <h1 id="title">Håkon Wium Lie</h1> 
 <hr>
  <blockquote>
   <p>In the near future, the web is going to be the master copy of human knowledge. We need to figure out ways to use that   knowledge.</p>
  <cite>-- Håkon Wium Lie, creator of CSS</cite>
  </blockquote>
  
  <div id="img-div">
    <img id="image" 
         src="https://usesthis.com/images/interviews/hakon.wium.lie/portrait.jpg" 
         alt="A picture of Hakon Wium Lie with a cute white ducks at a park"/></div>
    <figcaption id="img-caption">Håkon Wium Lie (born July 16, 1965) is a Norwegian web pioneer, a standards activist, and the Chief Technology Officer of Opera Software from 1998 until the browser was sold to new owners in 2016. He is best known for developing Cascading Style Sheets (CSS) while working with Tim Berners-Lee and Robert Cailliau at CERN in 1994.</figcaption>
    <section id="tribute-info">
      <h3 id="headline">Hakon Wium Lie's Timeline</h3>
      <ul>
        <li>1991 - Attended Østfold University College, West Georgia College, and MIT Media Lab</li>
        <li>1994 -  He proposed the concept of Cascading Style Sheets (CSS) while working with Tim Berners-Lee and Robert Cailliau</li>
        <li>1995 - Joined W3C (World Wide Web Consortium)</li>
        <li>1998 - He worked on the CSS specifications, including CSS1, CSS2 and RFC 2318</li>
        <li>1999 -  Joined Opera Software in Oslo, Norway as CTO</li>
        <li>2006 -  Started campaigning for browsers to support downloadable web fonts using common font formats</li>
        <li>2007 - Started campaigning for the video element to make it easier to publish video on the web</li>
        <li>2008 - He was spokesperson for a group of technical committee members who resigned over the decision by Standards Norway to vote for the approval of OOXML</li>
        <li>2017 - Held a keynote at the WeAreDevelopers Conference 2017</li>
      </ul>
  </section>

<p id="footer">Read more about <a id="tribute-link" href="https://en.wikipedia.org/wiki/H%C3%A5kon_Wium_Lie" target="_blank">Hakon Wium Lie</a></p>.
</main>
              
            
!

CSS

              
                #main {
  max-width: 700px;
  margin: 30px auto 100px auto;
  padding: 30px 40px;
  border-radius: 10px;
  background: #F9F5F2;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
  margin: auto;
  border-color: white;
  border-width: 10px;
  border-style: solid;
}

#img-caption {
  font-family: 'Amiri', serif;
  font-size: 18px;
  max-width: 500px;
  margin: 20px auto 30px auto;
  text-align: justify;
}

#title {
  font-size: 75px;
  font-family: 'Nothing You Could Do', cursive;
  text-align: center;
  color: #D5A080;
}

@media (max-width: 800px){
  #title {
  font-size: 45px;
  font-family: 'Nothing You Could Do', cursive;
  text-align: center;
  }
}

blockquote {
  font-size: 30px;
  font-style: italic;
  max-width: 550px;
  margin: 80px auto 80px auto;
  text-align: left;
}

@media (max-width: 800px){
  blockquote {
  font-size: 20px;
  font-family: italic;
  text-align: left;
  max-width: 380px;
  margin: 20px auto 20px auto;
  }
}

#headline {
  font-family: 'Amiri', serif;
  font-size: 25px;
  text-align: center;
  }

@media (max-width: 800px){
  #headline {
  font-family: 'Amiri', serif;
  font-size: 18px;
  text-align: center;
  }  
}

ul {
  font-family: 'Amiri', serif;
  font-size: 18px;
/*   max-width: 520px;
  margin: 0 auto 50px auto; */
  text-align: justify;
  line-height: 1.8;
}

#footer {
  font-family: 'Amiri', serif;
  font-size: 18px;
  margin: 30px auto 0px auto;
  text-align: center;
}

section {
  padding: 20px 60px 30px 60px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}

@media (max-width: 800px){
section {
  padding: 10px 5px;
  box-shadow: 0 0px 0px rgba(0,0,0,0), 0 0px 0px rgba(0,0,0,0);
}
}


              
            
!

JS

              
                
              
            
!
999px

Console