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

              
                <script src="https://gitcdn.link/repo/freeCodeCamp/testable-projects-fcc/master/build/bundle.js"></script>
<!DOCTYPE HTML>
<html>
  <head></head>
  <body>
    <main id="main">
      
      <div style="margin-bottom: 0px; ">
<h1 id="title">Dr. Nelson Mandela</h1>
        <h2 id="title" class="increaseFont">The man who fought for our freedom</h2> </div>
      
    <div id="img-div" class="img-back" style="margin-top: 0px;">
    <img id="image" src="https://i.guim.co.uk/img/static/sys-images/Guardian/Pix/pictures/2013/3/28/1364508337045/Mandela-And-First-001.jpg?w=1010&q=55&auto=format&usm=12&fit=max&s=3c7bf10828204d5a8fa05189129168ae" alt="Dr Nelson Mandela">
          <p id="img-caption">Dr Nelson Mandela fought against black and white domination, He was sentanced to 27 years behind bars in Robben Island. </p>
    </div>


      <h3 id="title">Here's a time line of Dr. Nelson Mandela:</h3>
      <ul id="tribute-info" >
        <li><strong>July 18, 1918</strong> - Rolihlahla Mandela is born in Mvezo, a tiny village in the Transkei, a former British protectorate in the south. His father, Gadla Henry Mphakanyiswa, was a chief of the Thembu people, a subdivision of the Xhosa nation. The new child’s given name translates, colloquially, as troublemaker. He receives his more familiar English name, Nelson, from a teacher at age 7.</li>
        
        <li><strong>1938</strong> - Mr. Mandela is admitted to the University of Fort Hare, a black institution. Two years later he will be expelled for leading a student protest.</li>
        
        <li><strong>1944</strong> -Mr. Mandela marries Evelyn Ntoko Mase. The couple will have four children, but Mr. Mandela’s political activities will put a strain on the relationship. The couple will divorce in 1958. </li>
        
        
        <li><strong>1944</strong> -Mr. Mandela and other activists form the African National Congress Youth League after becoming disenchanted with the cautious approach of the older members of the A.N.C. The league’s formation marks the shift of the congress to a mass movement. But its manifesto, so charged with pan-African nationalism, offends some non-black sympathizers. </li>
        
        
        <li><strong>1948</strong> -The National Party takes power in South Africa and sets out to construct apartheid, a system of strict racial segregation and white dominatio</li>
        
        
        <li><strong>1952</strong> -Mr. Mandela and Oliver Tambo open South Africa’s first black law practice..</li>
        
        
        <li><strong>DEC 5, 1956</strong> - Mr. Mandela is arrested at his home and charged with treason, along with 155 others who called for a nonracial state in South Africa.</li>
        
        
        <li><strong>June 14, 1958</strong> -In the midst of Mr. Mandela’s trial on treason charges, he marries Nomzamo Winifred Madikizela, 16 years his junior. The tumultuous union will produce two daughters and a national drama of forced separation, devotion, remorse and acrimony. </li>
        
        <li><strong>March 21, 1960</strong> -The police fire on a demonstration in Sharpeville, killing 69 people and wounding 181. After the shooting, the South African government bans black political groups and gatherings, and arrests thousands. The A.N.C. is among the banned groups. Its members go underground and begin planning a campaign of direct attacks on the apartheid government. </li>
        
        
        <li><strong>March 21, 1961</strong> -Mr. Mandela and his co-defendants are acquitted of treason. Fearing he will be arrested again, Mr. Mandela goes underground.</li>
        
        
        <li><strong>Dec 16, 1961</strong> -Mr. Mandela and other A.N.C. leaders form a military wing called Umkhonto we Sizwe, or Spear of the Nation. Mr. Mandela becomes the first commander in chief of the guerrilla army. He will train to fight, work to obtain weapons for the group, and come to be known as the Black Pimpernel, but he will never see combat. </li>
        
        
        <li><strong>Aug 5, 1962</strong> -Mr. Mandela is arrested after returning to South Africa from a trip abroad. At the time of his arrest, he had been living underground for 17 months. He is convicted of leaving the country illegally and incitement to strike, and is sentenced to five years in prison. </li>
        
        
        <li><strong>July 11, 1963</strong> - The police raid a farm in Rivonia, outside Johannesburg, where the A.N.C. had set up its headquarters. They find documents outlining the group’s plan for guerrilla warfare. Using the evidence found on the farm, the government charges Mr. Mandela and eight co-defendants with sabotage and conspiracy to overthrow the government. The ensuing trial, which became known as the Rivonia trial, establishes Mr. Mandela’s central role in the struggle against apartheid.</li>
        
        
        <li><strong>July 12, 1964</strong> -Mr. Mandela and seven others are convicted and sentenced to life in prison. Mr. Mandela is sent to Robben Island prison, seven miles off the coast of Cape Town. He will spend the next 18 years there</li>
        
        
        <li><strong>July 16, 1976</strong> -Tens of thousands of students take to the streets of Soweto to oppose the use of Afrikaans as the language of instruction in black schools. The police fire on the protesters, setting off months of violence that will leave more than 570 people dead. The uprising is considered a turning point in the history of black resistance to apartheid.</li>
        
        
        <li><strong>March 28, 1982</strong> -Mr. Mandela and four other A.N.C. leaders are transferred from Robben Island to Pollsmoor Prison in the suburbs of Cape Town. While many believe the move is intended to lessen the influence of the famous prisoners, government officials later say they wanted a way to open a discreet line of communication with the men. </li>
        </lu>
      <hr/>
      <footer>
      <p class="fontType">"Mandela's life and achievement are testimony to the far-reaching contribution that one man's towering intellect, persistence and political vision can make to human peace and progress."</p>
      <p id="img-caption">-- First Black President Of South Africa</p>
      <h3>If you have time, you should read more about this incredible human being on his <a id="tribute-link"  href="https://en.wikipedia.org/wiki/Nelson_Mandela" target="_blank">Wikipedia entry.</a></h3>
        </footer>
    </main>
    </body>
</html>
              
            
!

CSS

              
                #main{
  background-color: #f0f0f0;
}
#title{
  text-align: center;
  
}
.increaseFont{
  font-size: 20px;
}
#img-div{
  border-style: outset;
  border-radius: 8px; 
}
#image{
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    max-width: 100%;
    border-radius: 16px;
    height: auto;
}
#img-caption{
  text-align: center;
  
}
#tribute-info{
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    font-size: 17px;
    line-height: 20px;
    font-weight: normal;
    border: 2px solid #ADD8E6;
    border-radius: 10px;
    background-image: url('https://www.southafricanonlinecasino.com/img/saoc-proudly-south-african.png');
    background-size: cover;
}

#tribute-link{
 color: hsl(0, 38%, 50%);
 text-decoration: none;
}

.fontType{
  font-style: italic;
  font-weight: bold;
}

/* visited link */
a:visited {
    color: green;
}

.img-back{
  background-image: url('https://t3.ftcdn.net/jpg/00/72/96/42/240_F_72964297_NyDrtPB2xXO7Hcin7i6N8CBxZiFkxx3B.jpg');
  background-size: cover;
}

.img-back p{ color: white;}

li{line-height: 29px;}

              
            
!

JS

              
                
              
            
!
999px

Console