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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<main id="main">
 <h1 id="title">Dwyane <i>"The Flash"</i> Wade</h1>
  <h3><u>The Hero of the South</u></h3>
 <figure id= "img-div">
  <img id="image" class="black-border" src="https://66.media.tumblr.com/32f3f6beb71878ebb7fcfacad653f1fe/tumblr_o9yi4mHgTn1qm9rypo1_1280.jpg" alt="Wade makes a layup" > 
    <figcaption id= "img-caption"><strong>The Miami Heat guard Dwyane Wade soars for a layup.</strong></figcaption>
  </figure>
 
    <p id="tribute-info">I may not remember my first time watching Wade play on the tv. However, I surely remember the impact it left on me as a kid in Primary school. At the time, I was solely into Track & Field when it came to sports. I had no clue that I was watching my <i>'soon to be'</i> favorite player.</p> <p>He may not have been the most athletic, or the greatest shooter there was. However, with a mix of speed and agility, the guy made it seem like  poetry in motion. Can you imagine seeing acrobatics and ballet during a basketball game? Neither could I but I was watching it unfold right before my eyes as a kid. The guy was as graceful as a gazelle in his natural habitat and the basketball court was his plain to roam.</P> 

<p>It's true that the average Joe may have liked the ferocious slam dunks, or the killer crossevers. However, my favorite moves were the trick shots and strong finishes to the basket. Most of them were even made without him even looking at the rim. It amazed me as a kid and evidently made me want to try those exact same shots. It may have taken me some time to get the shots to drop. However, by the time I began playing basketball, the greatest compliments ever were when people compared my layups do Wade without even telling them he was my favorite player. Most of the guys growing up admired Kobe or Lebron, or even Mike. But not me, I wanted to be like Wade. There isn't much more needed to say, to describe the greatness of the best to wear <strong>#3</strong>. But if you are still in doubt, you can check some of his accolades for yourself <a id="tribute-link" href="https://en.wikipedia.org/wiki/Dwyane_Wade" target="_blank">here</a>.</p>
 
</main>
              
            
!

CSS

              
                body{
  background-color: red;
  background-image: url('https://media.nbcmiami.com/2019/09/GettyImages-1692889842-1.jpg?resize=850%2C478');
  background-repeat: no-repeat;
  background-attachment: fixed; 
  background-size: 100% 100%;
}
html{
  text-align: center; font-family: Sans-serif; display: grid; place-items: center;box-sizing: border-box; color: white;
}
*, *:before, *:after {
  box-sizing: inherit;
}
#main{
  max-width: 1000px; background-color: red; 
}
img{
 max-width: 500px;display: block; margin: auto; width: 100%; height:auto;  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 8px 20px rgba(0,0,0,0.23);
}
/*.black-border{
  border-color: black; border-width: 10px; border-style: solid; border-radius: 5%;
}*/
h1{
  padding: 15px; font-size: 3em;
}
figcaption{
  padding: 10px;
}
p{
  margin: 15px;padding: 5px; text-align: left; font-size: 1.2em; color: white;
}
a{
  color: yellow;
}
              
            
!

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