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

              
                <main id="main">
  <h1 id="tittle">Prof. Wangari Maathai</h1>
  <p>The first woman who was an enviromental activist.</p>
  <figure id="img-div">
    <img id="image" src="freecode/photo.jpg">
         <figcaption id="img-caption">
           Prof. Wangari Maathai with a group of villagers and children planting a tree after a talk on importance of planting trees.
    </figcaption>
  </figure>
  <section id="tribute-info">
    <h3>Here is the life long of Prof. Wangari Maathai</h3>
    <ul>
      <li>She was born at Ihithe village in Nyeri county on April <strong>1940.</strong>  </li>
      <li>She went to Ihithe primary school in<strong>1948</strong> ,St. Cecilia's intermediate school in<strong>1951</strong> and Loreto high school Limuru in <strong>1956</strong>. She also attended university in the USA from <strong>1960 to 1966</strong>.</li>
      <li>In <strong>1966</strong> she returned to Kenya  and was employed as a research asssistant at the school of veterinary medicine, University of Nairobi. In <strong>1971</strong> she graduated with a Ph D in anatomy.She became an associate  professor, University of Nairobi and Germany in<strong>1977</strong></li>
      <li> She later joined Kenya red cross in 1971 and became director of the organisation in <strong>1973</strong></li>
      <li>In <strong>1974</strong> she joined the Enviromental Liasion center where she became the chairperson.</li>
      <li> Wangari received several awards  for her struggle to improve the enviroment , the most important being the Nobel Peace prize in <strong>2004</strong></li>
      <li>Wangari died in the year <strong>2011</strong> after fighting a good fight as an enviromental activist.</li>
    </ul>
    <blockquote>
      <cite="https://www.greenbeltmovement.org/node/745">
      <p>"Kenya continues to carve out a distinct place among the nations. The country is a leader for conservation, following in the footprints of Wangari Maathai."</p>
      <cite>--The US president Barack Obama</cite>
    </blockquote>
  
 <p> For more information about Professor Wangari as an enviromental activist visit the link. <a id="tribute_link" href="https://en.wikipedia.org/wiki/Wangari_Maathai" target="_blank">Tribute of Professor Wangari</a> </p>
  </section> 
</main>
              
            
!

CSS

              
                main{
  font-size: 15px;
}
body{
  text-align: justify;
  color: black;
  font-family: verdana;
  line-height:1.5em;
}
h1{
  text-align: center;
}
p{
  text-align: center;
}
@media (max-width: 460px) {
  h1 {
    font-size: 3.5rem;
    line-height: 1.2;
  }
}

h2 {
  font-size: 3.25rem;
}
h3{
  text-align: center;
  font-size: 19px;
  text-decoration: underline;
}

a {
  color: #477ca7;
}

a:visited {
  color: #74638f;
}

#main {
  margin: 30px 8px;
  padding: 15px;
  border-radius: 5px;
  background: #eee;
}

@media (max-width: 460px) {
  #main {
    margin: 0;
  }
}

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

#img-div {
  background: white;
  padding: 10px;
  margin: 0;
}

#img-caption {
  margin: 15px 0 5px 0;
}

@media (max-width: 460px) {
  #img-caption {
    font-size: 1.4rem;
  }
}
ul {
  max-width: 550px;
  margin: 0 auto 50px auto;
  text-align: left;
  line-height: 1.6;
}

li {
  margin: 16px 0;
}

blockquote {
  font-style: italic;
  max-width: 545px;
  margin: 0 auto 50px auto;
  text-align: left;
}
              
            
!

JS

              
                
              
            
!
999px

Console