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>

<!-- 

Hello Camper!

For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 

-->
<script src="https://gitcdn.link/repo/freeCodeCamp/testable-projects-fcc/master/build/bundle.js"></script>

<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" />
<link href="https://fonts.googleapis.com/css?family=IM Fell French Canon SC" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" type="text/css">

<div id="main">
  <center>
    <h1 id="title">Sir David Attenborough</h1>
  </center>

  <div class="container-fluid">
    <div class="row">
      <div class="col-md-1"></div>
      <div class="col-md-5">

        <center>
          <div id="img-div">
            <div id="image">
              <a href="#"><img class="border img-responsive " src="https://www.dropbox.com/s/5ptfwvj5syuidbh/stream_img-2.jpg?raw=1" alt="David with butterfly"></a>
            </div>
            <div id="img-caption">
              <h5 class="profile-image"> Image Credits: John Stillwell / PA Wire/PA Images </h5>
            </div>
          </div>
        </center>
      </div>

      <div class="col-md-5">
        <div class="border background">
          <q class="normal-text">
<i>An understanding of the natural world and what's in it is a source of not only a great curiosity but great fulfillment. </i>
  </q>
          <h4 class="said-by">
            - Sir David Attenborough
          </h4>
        </div>

        <div id="img-div">
          <center>
            <div id="image">
              <a href="#"><img  class="border img-responsive" src="https://www.dropbox.com/s/hof57es7d69a19f/_final_11982678_11982662_trans_NvBQzQNjv4BqABqq2hkeCmkkLCJ1aFwBS3YcTNp6DFsiK2G3E3Q2xrM.jpg?raw=1"></a>
            </div>
            <div id="img-caption">
              <h5>Image Credits: Sarah Dunn/BBC NHU </h5>
            </div>
          </center>
        </div>
      </div>
      <div class="col-md-1"></div>
    </div>

    <div class="row">
      <div class="col-md-2"></div>
      <div class="col-md-8">
        <div id="tribute-info">
          <ul class="smaller-text border background ul">
            <li> <b>1926:</b> Born in Isleworth </li>
            <li><b>1945:</b> Awarded a scolarship to Clare College of Cambridge University where he comleted his degree in natural sciences.</li>
            <li><b>1947:</b> Called up for national service where he served in the Royal Navy.</li>
            <li> <b>1952:</b> Became one of the producers for the Talks department at the BBC.</li>
            <li> <b>1960:</b> After resigning from the BBC he went to the London School of Economics to study Social Anthropology. </li>
            <li><b>1985:</b> He was knighted, which is why he is now refered to as Sir.
              </>
              <li> <b>2001:</b> His programme Blue Planet was released.</li>
              <li><b>2002:</b> He was names among the top 100 Greated Britons in a BBC poll.</li>
              <li> <b>2006:</b> Achieved a special recognition Award at the National Television Awards.</li>
              <li> <b>2017:</b> Blue Planet II was released, which raised awareness on plastic pollution.</li>
        </div>
        </ul>

        <div class="normal-text border background">
          <q>
<i>There is something very calming and sort of warm about his programmes. There is something very reassuring about seeing David Attenborough on BBC One doing his documentaries. It is part of the national psyche now. </i>
  </q>
          <h4 class="said-by">
            - Duke of Cambridge
          </h4>
        </div>

        <h5 class="normal-text border background"> For more information on this incredible man, visit his <a id="tribute-link" target="_blank" href="https://en.wikipedia.org/wiki/David_Attenborough"> Wikipedia page</a>.
        </h5>
      </div>
      <div class="col-md-2"></div>
    </div>
  </div>
</div>

              
            
!

CSS

              
                body {
  background-image: url(https://www.dropbox.com/s/iecsmfz7iqzuzek/daylight-environment-forest-459225-4-3.jpg?raw=1);
  background-size: cover;
background-attachment: fixed;
  margin: 0;
  padding: 0;
}

#title {
  font-family: IM Fell French Canon SC;
  text-align: center;
  font-size:8vw;
  font-color:black
}

.border {
  border-style: solid;
  border-color: black;
  border-width: 2px;
  border-radius: 50px;
}

.background {padding:1.5em;
  margin-bottom:2em;
background-color: rgba(250, 250, 250, 0.9)}


.normal-text {
  font-family: Lato;
  font-size: 20px;
  line-height:150%;
}

.smaller-text {
  font-family: Lato;
  font-size: 17px;
  line-height:150%
}

.said-by {
  font-style: italic;
  font-family: Lato;
  font-size: 15px;
  text-align: right;
}

.ul{margin-top: 2em;
padding: 2em;
line-height:170%}

.profile-image{margin-bottom: 2em}


#image {max-width: 100%;
  display: block;
  height: 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