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

              
                <header id="title">
    Michael Jordan
  </header>
  <main id="main">
    <h3 class="nick"><span>"</span>His Airness<span>"</span></h3>
    <h2> The greatest Basketball player ever</h2>
    <figure id="img-div">
      <img id="image" src="https://alexraphael.files.wordpress.com/2020/05/jordan-dunk.jpg?w=768" alt="airborne Michael Jordan, midway through his famous dunk from the free throw line.">
      <figcaption id="img-caption">An airborne Michael Jordan, midway through his famous dunk from the free throw line.</figcaption>

    </figure>
    <p class="credit">
    <span class="attribution-text">"</span>
    <a href="https://www.flickr.com/photos/87966281@N05/8407852706" target="_blank"><span class="attribution-text">Michael Jordan</span></a>
    <span class="attribution-text">" by</span>
    <a href="https://www.flickr.com/photos/87966281@N05/" target="_blank"><span class="attribution-text">Kip-Koech</span></a>
    <span class="attribution-text">, licensed under</span>
    <a href="https://creativecommons.org/licenses/by/2.0/" target="_blank"><span class="attribution-text">CC BY 2.0</span></a>
    </p>
    <section id="tribute-info">
      <h3 class="tribute-heading">A brief look into the life of Michael Jordan</h3>
      <ul>
        <li><b>1963</b>
          - Michael Jeffery Jordan is born to Deloris and James R. Jordan Sr. in Brooklyn, New York City.
        </li>
        <li><b>1968</b>
          - The family move to Wilmington, North Carolina.
        </li>
        <li><b> 1981</b>
          - Acceptes a basketball scholarship to the University of North Carolina at Chapel Hill,
          as a sophomore, he was named College Player of the Year by The Sporting News. As a junior, he received that award again as well as the Naismith and Wooden Awards.
        </li>
        <li><b>1982</b>
          - Wins the 1982 NCAA Championship game against Georgetown. Jordan later described the game winning shot as the major turning point in his basketball career.
        </li>
        <li><b>1984</b>
          - Wins gold at the Los Angeles Olympics and is selected by the Chicago Bulls with the third overall pick of the 1984 NBA draft. He has an immediate impact as the Bulls improve to 11 more wins than the prior season  and he leads them to the play offs and is voted NBA Rookie Of the Year.
        </li>
        <li><b>1991</b>
          - The Chicago Bulls wins with what is Jordans first NBA championship and the first of what would come to be known as his first three-peat as the Bulls won the next two consecutive championships.
        </li>
        <li><b>1993</b>
          - At the end of the 1992-1993 season after winning his third consecutive championship, Jordan retires from basketball and goes to play baseball for the Birmingham Barons in the minor leagues. The decision is made after the murder of his father who had always hoped that he would play baseball while growing up.
        </li>
        <li><b>1995</b>
          - On March 18, 1995, Jordan announces his return to the NBA through a two-word press release: "I'm back."
          His first game back against the Indiana Pacers had the highest Nielsen rating of any regular season NBA game since 1975.
          The Jordan led Bulls are knocked out of the 1994 - 1995 NBA championships.
        </li>
        <li><b>1995</b>
          - The Bulls win the first NBA championship of what would come to be known as the second three-peat. The 1998 Finals holds the highest television rating of any Finals series in history; Game 6 also holds the highest television rating of any
          game in NBA history.
        </li>
        <li><b>1999</b>
          - Jordan retires once more as management decides to break up the championship winning team
        </li>
        <li><b>2000</b>
          - On January 19, 2000, Jordan returned to the NBA not as a player but as part owner and president of basketball operations for the Washington Wizards.
        </li>
        <li><b> 2001 - 2003</b>
          - On September 25, 2001, Jordan announced his return to the NBA to play for the Washington Wizards. With the recognition that 2002–03 would be Jordan's final season, tributes were paid to him throughout the NBA and the Miami Heat retired
          the No. 23 jersey on April 11, 2003, even though Jordan never played for the team. In his final game at the United Center in Chicago, which was his old home court, Jordan received a four-minute standing ovation. Jordan played in his final
          NBA game on April 16, 2003, in Philadelphia.
        </li>
        <li><b>Present</b>
          - Principal owner and chairman of the Charlotte Hornets of the National Basketball Association (NBA) and of 23XI Racing in the NASCAR Cup Series.
        </li>
        <li class="tribute-link">
          Click here to read up more on this amazing athletes <a id="tribute-link" href="https://www.nba.com/news/history-nba-legend-michael-jordan" target="_blank">life and accomplishments.</a>
        </li>

      </ul>



    </section>
    <footer>

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

CSS

              
                * {
  box-sizing: border-box;
}
body {
  font-family: Arial, 'Helvetica Neue', sans-serif;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;

}

li {
  padding: 20px 0;
}


h2 {
  text-align: center;
  font-weight: bold;

}

.nick {
font-family : 'Permanent Marker', cursive;
font-size : 40px;
font-weight : normal;
text-align : center;
}


footer {
  background-color: black;
  height: 50px;
}
#title {
  position: fixed;
  top: 0;
  width: 100%;
  font-size: 4rem;
  text-align: center;
  border-bottom: 1px solid grey;
  background-color: black;
  color: red;
  z-index: 2;
}

#main {
  position: relative;
  top: 150px;
  z-index: 1;
}

#tribute-info {
  width: 50%;
  margin: 0 auto;
  font-size: 1.1em;
  background-color: #EDF2F6;

}

#img-div {
  padding: 20px;
  width: 50%;
  margin: 0 auto;


}
#image {
  display: block;
  max-width: 100%;
  max-height: 100%;


}
#img-caption {
  text-align: center;
  color: white;
}
#tribute-link {
  text-align: center;

}
li.tribute-link {
  list-style-type: none;
}
.credit {
  margin-top: 0;
  text-align: center;
}
.tribute-link {
  padding-bottom: 20px;
}
.attribution-text {
  font-weight: bold;

}
.tribute-heading {
  text-align: center;
}

              
            
!

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