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

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

<div id="img-div">
  <img id="image"src="https://image.tmdb.org/t/p/w600_and_h900_bestv2/w9Wi0OUEFGy9vMUpiZjj9GLzpag.jpg" 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>
    <div id="tribute-info">
     <h3> Some personel details about Anderson:</h3>
     <ul>
       <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>
     </ul>
     <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>
     </div>
    <p> You can read more about his biography <a id="tribute-link" href="https://en.wikipedia.org/wiki/Richard_Dean_Anderson" target="_blank">Click here</a></p>

              
            
!

CSS

              
                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;
}

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

#img-div{
  margin: -5px;
  margin-top: 20px;
  width: 100%
  border: 5px solid white;
}

#img-caption{
  margin:15px;
}

#headline{
  margin-top: 15px;
  text-align: left;
}

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

li{
  margin: 10px;
}

q{
  font-style: italic;
}
              
            
!

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