123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
    <script type="text/javascript" src="tribute.js"></script>
    <link rel="stylesheet" type="text/css" href="tribute.css">
    <title>Tribute Page</title>
</head>
<body  class="green-background">

   <!-- My tribute page should have an element with a corresponding id="main", which contains all other elements -->
   <container id="main">
        <!-- I should see an element with a corresponding id="title", which contains a string (i.e. text) that describes the subject of the tribute page (e.g. "Dr. Norman Borlaug")-->

        <p id="title">Steve Jobs Tribute Page</p>

        <!-- I should see a div element with a corresponding id="img-div"-->
        <div class="col-lg-4 col-sm-6" id="img-div">
     
            
            <!-- Within the img-div element, I should see an img element with a corresponding id="image"-->
            <!-- The img element should responsively resize, relative to the width of its parent element, without exceeding its original size-->
            <!-- The img element should be centered within its parent element--> 
             
               <img id="image" src="https://images-na.ssl-images-amazon.com/images/I/61n431BDxGL.jpg" alt="">
               
             <!-- Within the img-div element, I should see an element with a corresponding id="img-caption" that contains textual content describing the image shown in img-div-->  
        <p id="img-caption">Steve Jobs</p>
    </div>
     <!-- I should see an element with a corresponding id="tribute-info", which contains textual content describing the subject of the tribute page-->

     <div id="tribute-info">
         <p>Bio:</p>
         <ol>
           <li>Steven was born February 24, 1955</li>
           <li>Steve co-founded as Apple in 1976</li>
           <li>Steve passed away October 5, 2011</li>
         </ol>
         <p> Jobs ideas that changed the world:</p>
         <ul>
             <li>Demise of the PS2 keyboard</li>
            <li>Demise of the floppy drive</li> 
            <li>Demise of the CD-ROM drive</li>
           <li>Introduction of the USB keyboard</li>
           <li>Introduction of the iPod</li>
            <li>Introduction of the smart phone</li>
           <li>Pixar Movies</li>
           <li>iTunes For The Macintosh</li>
           <li>iTunes For Windows</li>
           <li>iCloud</li>
           </ul>
     
        </div>
       
        <!-- I should see an a element with a corresponding id="tribute-link", which links to an outside site that contains additional information about the subject of the tribute page. HINT: You must give your element an attribute of target and set it to _blank in order for your link to open in a new tab (i.e. target="_blank")-->
        <div>
            <p>Click here for <a id="tribute-link" href="https://en.wikipedia.org/wiki/Steve_Jobs" target="_blank">Steve Jobs Wikipedia Page.</a></p>
        </div>
        
       
     

    </container>    

   
  
 
</body>
</html>
            
          
!
            
              #title {
    text-align: center;
    font-size: 48px;
}

#main {

}

.green-background {
    background-color: green;
}

#image {
   display: block;
    width: 10%;
    margin-left: auto;
    margin-right: auto;
  max-width: 80%
}

#img-caption {
    text-align: center;
    font-weight:bold;
}

#tribute-info {
    text-align: center;

}

p {
    font-weight: bold;
}

ol {
    width: auto;
    display: inline-block;
   text-align: center;
}

ul {
    width: auto;
    display: inline-block;
   text-align: center;
}

            
          
!
            
              // !! 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
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console