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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <!--BG IMAGE 1-->
<div class="bgimg-1">
  <div class="caption">
    <span class="border">CARL SAGAN</span>
  </div>
</div>

<section>
  <div class="row">
    <div class="container">
      <div class="row">
        <h3>Introduction</h3>
        <div class="col-sm-12">
          <div class="mask1">
            <p>Carl Edward Sagan was an American astronomer. He tried to make science popular. He thought about what life from other planets would be like. He said that people should look for life on other planets (SETI). He is world famous for his popular
              science books and the television series Cosmos, which he co-wrote and presented. He said people should use the scientific method.</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>

<!--BG IMAGE 2-->
<div class="bgimg-2">

</div>


<section>
  <div class="row">
    <div class="container">
      <h3>Education and work</h3>
      <div class="mask2">
        <div class="col-sm-6">
          <p>Carl Sagan was born in Brooklyn, New York City where his father, Sam Sagan, was a Jewish clothes maker and his mother, Rachel Molly Gruber, was a housewife. Sagan attended the University of Chicago earning two degrees in physics. He followed
            with a doctorate in Astronomy in 1960 and taught at Harvard University until 1968, when he moved to Cornell University.</p>
        </div>
        <div class="col-sm-6">
          <p>Sagan became a teacher and director at Cornell in 1971. He helped many unmanned spacecraft to explore outer space. He thought of the idea of putting a message on spacecraft which could be understood by any life from another planet that might
            find it. The first message sent into space was a large gold-plated label on the space probe Pioneer 10. He continued to make the messages better. The last message he helped with was the Voyager Golden Record that was sent out with the Voyager
            space probes.</p>
        </div>
      </div>
    </div>
  </div>
</section>


<div class="bgimg-3">


</div>

<section>
  <div class="row">
    <div class="container">
      <h3>Scientific achievements</h3>
      <div class="mask3">
        <div class="col-sm-4">
          <p>He was well known as a writer who warned of the dangers of nuclear winter. He helped people learn about the atmosphere of Venus, seasonal changes on Mars, and Saturn's moon Titan. He showed that the atmosphere of Venus is very hot and dense.
            He also said that global warming was a growing, man-made danger like the natural development of Venus into a hot and dangerous planet with greenhouse gases. He suggested that the seasonal changes on Mars were due to dust storms.</p>
        </div>
        <div class="col-sm-4">
          <p>Sagan was among the first to guess that Titan and Jupiter's moon Europa might have oceans or lakes, which means that life could be there. Europa's underground ocean was later confirmed by the spacecraft Galileo.</p>
        </div>
        <div class="col-sm-4">
          <p>Sagan thought the search for life on other planets was a good idea. He said scientists should listen with large radio telescopes for signals from other planets. He thought sending probes to other planets was a good idea. Sagan was editor Icarus
            (a magazine about space exploration) for 12 years. He helped start the Planetary Society and was a member of the SETI Institute Board of Trustees.</p>
        </div>
      </div>
    </div>
  </div>
</section>

<div class="info">
  <p> To learn more abour Carl Sagan - <a href="https://en.wikipedia.org/wiki/Carl_Sagan">Click Here</a></p>
</div>

<footer>
  <p>2016 @ <span>Mohamed Sassi</span> / FreeCodeCampe -Tribute Page</p>
</footer>
              
            
!

CSS

              
                body,
html {
  height: 100%;
  margin: 0;
  font: 400 15px/1.8 "Lato", sans-serif;
  color: #777;
}

.bgimg-1,
.bgimg-2,
.bgimg-3 {
  position: relative;
  opacity: 0.85;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.bgimg-1 {
  position: relative;
  background-image: url("http://astar.tv/wp-content/uploads/2015/12/Sagan.jpg");
  min-height: 70%;
  height: auto;
  display: block;
}

.bgimg-2 {
  background-image: url("https://clnewsblog.files.wordpress.com/2013/06/2kngo.jpg");
  min-height: 250px;
  height: auto;
  display: block;
}

.bgimg-3 {
  background-image: url("http://www.hannaharendtcenter.org/wp-content/uploads/2014/11/139.jpg");
  min-height: 600px;
  height: auto;
  display: block;
}

section {
  padding: 50px;
}

.mask1,
.mask2,
.mask3 {
  color: #777;
  background-color: whi #fff;
  text-align: center;
  text-align: justify;
}

.caption {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  text-align: center;
  color: #000;
}

.caption span.border {
  background-color: #111;
  color: #fff;
  padding: 18px;
  font-size: 25px;
  letter-spacing: 10px;
}

.border2 {
  background-color: transparent;
  font-size: 25px;
  color: #f7f7f7;
}

.col-sm-4,
.col-sm-6,
.col-sm-12 {
  margin-top: 20px;
}

h3 {
  letter-spacing: 5px;
  margin-top: 3rem;
  text-align: center;
  text-transform: uppercase;
  font: 20px "Lato", sans-serif;
  color: #111;
}

footer {
  color: black;
  text-align: center;
  padding: 10px;
  font-size: 12px;
}

span {
  color: red;
}

.info {
  text-align: center;
}
              
            
!

JS

              
                
              
            
!
999px

Console