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>

<!Doctype html>
<div id="main">
<div id="title">
  <head>
     <title> Bret Hart </title>
   </head>

  <nav id="navbar">
</nav>
    <nav class="nav-div">
           <ul class="nav-ul"> 
            <li class="nav-li"><a href="#Information">Information</a></li>
            <li class="nav-li"><a href="#How to contact or read more">How to contact or read more</a></li>
            </ul>
    </nav>
    
   
   <h1>Bret Hart</h1>
   <h2> Professional Wrestler</h2>
 <div id="img-div">
  <img id="image">
    <img class="smaller-image"   src="https://upload.wikimedia.org/wikipedia/commons/6/6e/Bretsigning.JPG" alt="bret hart signing">                                          
          <div id="tribute-info">
    <h3> Bret Hart at a signing session </h3>
     <div id="img-caption">
             
       <div id="Information">
 <div style="width:800px; margin:0 auto;">
    
       <ul>
    <li> 5 time wwf champion </li>
    <li> 2 time wwf intercontinental champion </li>
    <li> 2 time wwf tag team champion </li>
     <li> His nickname "the hitman" is taken from professional boxer Thomas "hitman" Hearns</li>
    <li>His slogan or catchphrase is "the best there is, the best there was, and the best there ever will be"</li>
         <li>Also, "the excellence of execution", made most known by gorilla monsoon</li>
     <li>His tag team name is the Hart Foundation, and their nickname is "the pink and black attack"</li>
  </ul>
      
  
  <ol><h6>His famous family members are:</h6>
         <li>Stu Hart</li>
         <li>Helen Hart</li>
         <li>Owen Hart</li>
         <li>Diana Smith (Hart), married to the British Bulldog, Davey boy Smith</li>
      </ol>
   <ul2>
     <li><strong>1994</strong> Won the title at wrestlemania 10</li>
       </div>
      
  <h4>From Calgary, Alberta Canada, from the famous Hart family, he's Bret "the hitman" Hart. Stu Hart is his father, and his family ran stampede wrestling in canada, before joining the wwf in the 1980s. He has 12 brothers and sisters in total, the most famous is another wrestler, Owen. etc </h4>
    
     
                                                  
  <a  id="tribute-link" href="https://en.wikipedia.org/wiki/bret_hart" target="_blank">Bret Hart's Wikipedia page</a>.   
     <a id="tribute-link" href="https://www.brethart.com/" target="_blank">Brethart.com</a>.
       
     <hr>
       <div id="How to contact or read more" class="bottom">
  <h5>If you would like to read more about Bret Hart, here are two pages to help you learn more. <a href="https://en.wikipedia.org/wiki/Bret_Hart"  
>Bret Hart's Wikipedia page</a> or his personal website <a href="https://www.brethart.com/">Brethart.com</a> </h5>

          
              
            
!

CSS

              
                nav{
  width: 100vw;
  position: absolute;
  left: 0px;
  background-color: pink;
  top: 0px;
  height: 40px;
    }
nav li{
  display: inline;
  margin: 30px;
  font-size: 20px;
    
   }
nav ul {text-align: right;}
.nav-li a:hover {  
    color: black;
    transition: color 0.5s;
}

h1 {
  font-size: 50px;
  text-align: center;
}
.smaller-image {
  width: 250px;
}

h2 {
  font-size: 30px;
  font-family: monospace;
  text-align: center;
   
}

h3 {
  font-size: 20px;
   text-align: center;
}
div { text-align: center;}
ol {text-align: left;}
ul {text-align: left;}
ul2 {text-align: left;}
h4 { 
font-size: 20px;
}
h5 { 
 font-size: 20px;
  text-align: center;
  background-color: pink;
     }

   a:hover {
  color: hotpink;
}
.bottom {
    

  background-color: pink;
}
h6 {text-align: left;
    font-size: 20px;
    font-weight: normal;
}
#image {
  max-width: 100%;
  display: block;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

 
              
            
!

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