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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.


                <div id="main">
  <h1 id="title">The life of Richard Dean Anderson</h1> 

<div id="img-div">
  <img id="image"src="" alt="Richard Dean Anderson">
 <div id="img-caption">
    Richard Dean Anderson while he was acting the role of ´Colonel Jack O´Neill´ in Stargate SG 1
    <div id="tribute-info">
     <h3> Some personel details about Anderson:</h3>
       <li><b> Born on the 23th of January, 1950 in Minneapolis</b>
       <li><b> He began his television career in 1976, playing Dr. Jeff Webber    in the American soap-opera             series ´General Hospital´</b>
       <li><b> Then rises as the lead actor in the television series ´MacGyver´  between 1985 and 1992 </b>
       <li><b> But he became famous in the        series ´Stargate SG1´ from 1997            until 2005 </b>
       <li><b> In 2011 he was playing in some episodes of 'Farily Legal´ </b>
       <li><b>Today he is actively involved in environmental protection and is a member of the Sea Shepherd            Conservation Society </b>
     <p><q> I´m not big on reading directions. I can´t do that. I´m just not from this world.</q> -- Richard Dean        Anderson about yourself </p>
    <p> You can read more about his biography <a id="tribute-link" href="" target="_blank">Click here</a></p>



                html, body{
  text-align: center;
  min-width: 260px;
#main{background-color: lightgray;
      text-align: center;
      box-shadow: 0 0 10px #111;
      margin: 40px 125px -100px 125px;         padding-bottom: 30px;

  max-width: 100%;
  display: block;
  height: auto;
  margin: auto;

  margin: -5px;
  margin-top: 20px;
  width: 100%
  border: 5px solid white;


  margin-top: 15px;
  text-align: left;

  max-width: 550px;
  margin: 0 auto;
  text-align: left;

  margin: 10px;

  font-style: italic;


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

  - Select the project you would 
    like to complete from the dropdown 
  - Click the "RUN TESTS" button to
    run the tests against the blank 
  - 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.