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

              
                <div class="text-center big-div container">
<div>
  <h1 id="main"class="text-center"> Dr. Norman Borlaug!
  </h1>
</div>
<div>
  <h3 class="text-center">
  The man who saved a billion lives.
  </h3>
</div>

  <div>
    <img class="img img-thumbnail img-responsive" src=https://c2.staticflickr.com/4/3689/10613180113_fdf7bcd316_b.jpg alt="Dr. Norman Having fun with a bunch of losers">
    <p class="text-center">Dr. Norman with his friends
  </p></div>
  <div class="text-center info-div">
    <h3>Here's a timeline of his works</h3>
    <div class="text-left">
      <ul>
        <li><b>1914</b> - Born in Cresco, Iowa</li>
        <li><b>1933</b> - Leaves his family's farm to attend the University of Minnesota, thanks to a Depression era program known as the "National Youth Administration"</li>
        <li><b>1934</b> - Has to stop school and save up more money. Works in the Civilian Conservation Corps, helping starving Americans. "I saw how food changed them", he said. "All of this left scars on me."</li>
        <li><b>1937</b> - Finishes university and takes a job in the US Forestry Service</li>
        <li><b>1938</b> - Marries wife of 69 years Margret Gibson. Gets laid off due to budget cuts. Inspired by Elvin Charles Stakman, he returns to school study under Stakman, who teaches him about breeding pest-resistent plants.</li>
        <li><b>1940</b> - Tries to enroll in the military after the Pearl Harbor attack, but is rejected. Instead, the military asked his lab to work on waterproof glue, DDT to control malaria, disenfectants, and other applied science.</li>
        <li><b>1941</b> - Receives a Ph.D. in Genetics and Plant Pathology</li>
        <li><b>1945</b> - Rejects a 100% salary increase from Dupont, leaves behind his pregnant wife, and flies to Mexico to head a new plant pathology program. Over the next 16 years, his team breeds 6,000 different strains of disease resistent wheat - including different varieties for each major climate on Earth.</li>
        <li><b>1944</b> - Discovers a way to grown wheat twice each season, doubling wheat yields</li>
        <li><b>1953</b> - crosses a short, sturdy dwarf breed of wheat with a high-yeidling American breed, creating a strain that responds well to fertalizer. It goes on to provide 95% of Mexico's wheat.</li>
        <li><b>1961</b> - Visits Delhi and brings his high-yielding strains of wheat to the Indian subcontinent in time to help mitigate mass starvation due to a rapidly expanding population</li>
        <li><b>1970</b> - receives the Nobel Peace Prize</li>
      </ul>
    </div>
  </div>
  <div><em><b>
 <br><br><blockqoute> "Borlaug's life and achievement are testimony to the far-reaching contribution that one man's towering intellect, persistence and scientific vision can make to human peace and progress."</blockquote></em></b>
  </div>
  <br><br>
  <div>
    If you have time, you should read more about this incredible human being on his <a href="https://en.wikipedia.org/wiki/Norman_Borlaug" target="_blank">Wikipedia entry</a>.<div>
</div>
              
            
!

CSS

              
                #main{
  color: #5c548a;
}
h1{
  padding-top:3%;
}
body{
  background-color: #999999;
}
.info-div{
  background-color:#FFFFFF;
}
img{
  margin-top:5%;
}
              
            
!

JS

              
                $(".big-div").css("background-color","#DAFF99");

              
            
!
999px

Console