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

              
                <!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  
    <title>Dr. Norman Borlaug Tribute Page</title>
  
  <!-- Google fonts -->
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Sans+Pro:400,700" rel="stylesheet">
  <link rel="stylesheet" href="tribute.css">
</head>
<body>
  <div id="main">
    <!-- Header -->
    <div id="header">
    <div id="title"><h1>Dr. Norman Borlaug</h1></div>
      <div class="subtitle">The Agronomist who led the Green Revolution</div>
    </div>
    
    <div id="content">
      <!-- Photo content -->
      <div id="img-div"><img id="image" src="https://cdn.britannica.com/50/136250-050-E1680FC7.jpg" alt="Dr. Norman Borlaug holding the results of his wheat">
        <div id="img-caption">Developer of a short-stemmed (“dwarf”) strain of wheat that dramatically increased crop yields. </div>
    </div>

      <!-- Tribute info section -->
      <div id="tribute-info">
        <p>Norman Ernest Borlaug (March 25, 1914 – September 12, 2009) was an American agronomist who led initiatives worldwide that contributed to the extensive increases in agricultural production termed the Green Revolution. Borlaug was awarded multiple honors for his work, including the Nobel Peace Prize, the Presidential Medal of Freedom and the Congressional Gold Medal.</p>
        <p>Borlaug was the great-grandchild of Norwegian immigrants. Ole Olson Dybevig and Solveig Thomasdatter Rinde, of Feios, a small village in Vik kommune, Sogn og Fjordane, Norway, emigrated to Dane County, Wisconsin in 1854.[citation needed] The family eventually moved to the small Norwegian-American community of Saude, near Cresco, Iowa. There they were members of Saude Lutheran Church, where Norman was both baptized and confirmed.</p>
      </div>
    </div>
      
    <!-- Footer content -->
    <div id="footer">
      <div id="source">
        You can check out the full details about Dr. Norman Borlaug by visiting the corresponding <a id="tribute-link" href="https://en.wikipedia.org/wiki/Norman_Borlaug" target="_blank">Wikipedia Page</a>.
      </div>
    </div>
    
  </div>

</body>
</html>
              
            
!

CSS

              
                body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    background-color: #ECEFF1;
  }
  
  #main {
    width: 100%
  }
  
  #header {
    text-align: center;
    background-image: url("https://i.ytimg.com/vi/Lg9-HTtgFOk/maxresdefault.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    padding-bottom: 10px;
    border-radius: 20px;
  }
  
  #title {
    margin-bottom: -10px;
  }
  
  #content {
    display: flex;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
    justify-content: center;
    align-items: center;
    border-radius: 20px 20px 0 0;
  }
  
  #img-div {
    max-width: 35%;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 40px;
  }
  
  img {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
  }
  
  #img-caption {
    margin-top: 20px;
    text-align: center;
    padding-bottom: 20px;
  }
  
  #tribute-info {
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    max-width: 40%;
  }
  
  #footer {
    margin-top: 20px;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #CFD8DC;
    border-radius: 20px;
    float: left;
  }
  
  #source {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    text-align: center;
  }
  
  h1 {
    font-weight: 700;
  }
              
            
!

JS

              
                
              
            
!
999px

Console