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="coolkid">
<div align="center"id="headerr" class="center">
<h1> Nelson Mandela </h1>
<h2> <em> Madiba of Africa </em> </h2>

<br><br>
<img align="middle" src="https://cdn.britannica.com/67/75567-050-6BF40AC2/Nelson-Mandela.jpg" />
    
  </div>
  <div id="intro">
    <div class="row">
  <div class="col-md-6 col-centered">

  <h4> Who was Nelson Mandela? </h4>
<p align="justify";> Nelson Mandela was born in July 18 1918. He served as the first black Head of state. His government focused on destroying the Appartheid goverment in the country which had a focus on racial segregation which was enforced by the law. His government focused on dismantling the legacy of apartheid by tackling institutionalised racism and fostering racial reconciliation.
    </div>
      </div>

 <div class="row">
   <div class="col-md-6 col-centered">
     <br> <br>
<h4> Timeline of Nelson Mandela </h4>
<ul> 
  <li><b>1918 :</b> Nelson Mandela was born</li>
  <li><b>1925 :</b> Went to primary school</li>
  <li><b>1939 - 1940 :</b>Enrols at the University College of Fort Hare, in Alice and expelled next year </li>
  <li><b>1942 :</b> Begins to attend African National Congress (ANC) meetings informally</li>
  <li><b>1951 :</b> Elected President of the ANCYL</li>
  <li><b>1956 :</b>Arrested and later joins 155 others on trial for teason. All are acquitted by 29 March 1961</li>
  <li><b>1990 :</b> Nelson Mandela is Released</li>
  <li><b>1993 :</b> Awarded the Nobel Peace Prize with President FW de Klerk</li>
  <li><b>1994 :</b> Elected by Parliament as first president of a democratic South Africa</li>
  <li><b>2013 :</b>Passes away at home in Johannesburg </li>
  </div>
   </div>
  
    <div class="row">
   <div class="col-md-6 col-centered">
     <br>
  <h5>I learned that courage was not the absence of fear, but the triumph over it. The brave man is not he who does not feel afraid, but he who conquers that fear. </h5>
   
   <h6>-Nelson Mandela </h6>
      </div></div>
  </div>
  
    <br><br>
     <div class="row">
   <div class="col-md-6 col-centered">
 <h6> To find out more about Nelson Mandela, Click <a href="https://en.wikipedia.org/wiki/Nelson_Mandela">here</a></h6>
       </div>
    </div>
  
  
   </div>
              
            
!

CSS

              
                #headerr{
   font-family: "Monospace";
  margin: 30px;
  padding: 40px;
  align: center;
     }
img{
width: 300px;
height: 300px;
}
.coolkid{
  padding: 10px;
  margin: 10px;

  }
.coolkid{
  padding: 10px;
  margin: 10px;
  position: relative;
}
.coolkid::before {
  content: "";
  position: absolute;
  left:0;top:0;
  width: 100%;
  height: 100%;
  opacity: .2;
  background-image: url("https://upload.wikimedia.org/wikipedia/commons/thumb/a/af/Flag_of_South_Africa.svg/1200px-Flag_of_South_Africa.svg.png");
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
}
h1{
  font-size: 500%;
}

.col-centered{
float: none;
margin: 0 auto;
}
ul{
  padding-left:20px;
}

              
            
!

JS

              
                
              
            
!
999px

Console