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>
  <body>
    <div id="main">    
      
      <header>
        <h1 id="title">Simone Biles</h1>
      </header>  
      
      <h2><em>- The most decorated American gymnast in history. -</em></h2>
      
      <div id="img-div">
        <img id="image" src="https://ecelebrityfacts.com/images/35204/simone-biles-35204-31291-1474445742.jpg" alt="">
        <div id="img-caption">Simone Biles, smiling as she poses with her medals in front of the American flag.</div>
      </div>
     
      <div id="tribute-info">
        <h3 id="biography">Biography</h3>
          <p> Simone Biles is a four-time Olympic gold medalist and a three-time World all-around gymnastics champion. In 2015 at the World Championships in Glasgow, Scotland, she became the only female gymnast to ever win three consecutive all-around titles. She is also the most decorated American female gymnast, with a total of nineteen medals, fourteen of them gold.</p>
          <p>Simone, who was born in Ohio and later adopted by her grandparents in Texas, began her training at age 6. During a serendipitous day care field trip to Bannon’s Gymnastix, a coach recognized Simone’s natural talent and sent home a letter to her parents, requesting that they enroll her in a class. Simone rose quickly through the sport’s levels, and in 2011, she began her junior elite career at the American Classics in Huntsville, Texas, where she placed third all-around. Amid a few setbacks in the following two seasons, Simone rebounded in 2013 to claim the first of her three all-around World Championship titles. With her strong faith in God and her triumph against the odds, Simone is inspiring millions to dream big and follow their hearts. 
            </p>
      </div>
      
      <div id="stats-info">
        <h3 id="stats">Stats:</h3>
          <ul>
            <li>Date of Birth: 3/14/97</li>
            <li>Hometown: Columbus, OH</li>
            <li>Resides: Spring, TX</li>
            <li>Height: 4’8”</li>
            <li>Passions: Reading, history, shopping and spending time with friends </li>
            </ul>
      </div>
      
    <br><br><br>
      <hr>
    <br><br>
    <div id="book-container">
      <div id="book-link-pic">
      <a id="book-link-pic" href="http://www.simonebiles.com/book" target="_blank"><img id="book-cover" src="http://www.simonebiles.com/images/book/book-img.png" alt="Cover of Courage to Soar by Simone Biles"></a>
      </div>
      
      <div id="book-info">
        <p>Simone Biles’ entrance into the world of gymnastics may have started on a daycare field trip in her hometown of Spring, Texas, but her God-given talent, passion, and perseverance have made her one of the top gymnasts in the world, as well as a four-time winner of Olympic gold in Rio de Janeiro.
<br><br>
But there is more to Simone than the nineteen medals—fourteen of them gold—and the Olympic successes. Through years of hard work and determination, she has relied on her faith and family to stay focused and positive, while having fun competing at the highest level and doing what she loves. Here, in her own words, Simone takes you through the events, challenges, and trials that carried her from an early childhood in foster care to a coveted spot on the 2016 Olympic team.
<br><br>
Along the way, Simone shares the details of her inspiring personal story—one filled with the kinds of daily acts of courage that led her, and can lead you, to even the most unlikely of dreams.</p>
      </div>
   </div>   
      
      <footer id="footer">
        <a id="tribute-link" href="https://en.wikipedia.org/wiki/Simone_Biles" target="_blank">Click here to read more information about Simone Biles on Wikipedia.</a>
      </footer>
      
    </div>
  </body>
  
</html>
              
            
!

CSS

              
                body {
  font-family: 'Oswald', sans-serif;
  border-color: black;
  border-width: 10px;
}

#main {
  background-color: #6B80D6;
  margin:20px;
  padding: 50px;
  border:0px solid;
  border-radius:5px;
}

h1 {
  font-family: 'Sacramento', cursive;
  text-align: center;
  color: black;
  font-size: 100px;
  margin: 0px;
  height: 110px;
  background: linear-gradient(90deg, #6B80D6, #D6C16B, #6B80D6);
}

h2 {
  font-family: 'Sacramento', cursive;
  text-align: center;
  margin: 0;
  height: 50px;
}

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

#img-caption {
  font-family: 'Sacramento', cursive;
  text-align: center;
  font-size: 25px;
  padding-bottom: 25px;
}

#biography {
  font-family: 'Sacramento', cursive;
  font-size: 40px;
  text-align: center;
  margin: 15px;
}

#tribute-info {
  background: #D6C16B;
  max-width: 60%;
  line-height: 30px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  border-radius: 15px;
  display: inline-block;
  padding: 20px;
}

#stats {
  font-family: 'Sacramento', cursive;
  font-size: 40px;
  margin: 15px;
}

#stats-info {
  background: #D6C16B;
  line-height: 30px;
  max-width: 40%;
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  border-radius: 15px;
  display: inline-block;
  vertical-align: top;
  padding: 20px;
}

#book-container {
display: flex;
  justify-content: space-around;
  flex-direction: row;
}

#book-link-pic {
  display: flex;
  max-width: 100%;
  max-height: 100%;
}

#book-info {
  display: flex;
  background: #D6C16B;
 box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  border-radius: 15px;
  padding: 20px;
  max-width: 50%;
  height: 100%;
}

a:visited {
  color: white;
}

a:hover {
  color: black;
}

#footer {
  text-align: center;
  padding-top: 30px;
  color: white;
}
              
            
!

JS

              
                // !! 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

Console