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

              
                <!DOCTYPE html>
<html lang="en-US">
    <head> 
<title>Tribute for Thomas Sankara</title>
<meta charset="utf-8">
<meta name="viewport" content="width=667, initial-scale=1">
<meta name="viewport1" content="width=1024, initial-scale=1">       
<link rel="stylesheet" href="sankara.css" type="text/css">
      
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
        
</head>
<body>
    
    <main id="main">
     <header>  
        <nav class="nav1">
            <ul> 
            <li><a href="#" target="_blank">Home</a></li>
            <li><a href="#">About Us</a></li>
            <li><a href="#">Gallery</a></li>
            <li><a href="mailto:aggymbuya@gmail.com?subject=Mail from our site" target="_blank">Contact Us</a></li>
            </ul>
        </nav> 
    </header> 
        
<div class="pcontent">
        <div class="item1"> <h1> Tribute of Thomas Sankara: "A Transformational Leader"</h1> </div>
  
  <p><a href="https://africa-facts.org/" target="_blank" id="tribute-link">Read more on Sankara</a> </p>
  
        <div class="item2" id="title" >
    <p><br><br><br>
            He was the African Cher Quevara. As a president, in <strong style="color: rgb(76,187,23);"> 4years!!</strong>, he was able to achieve tremendous tranformation for his Country "Upper Volta" a French Colony in West Africa. He later renamed the country to Burkina Faso <strong style="color: rgb(76,187,23);">"The Country of the Upright man"</strong>.</p>
        </div>
        <div class="item3" id="img-div"> 
    <figure> 
        <img id="image" src="https://i.postimg.cc/j2NcZXQM/desert.jpg" style="max-width: 100%" class="responsive-image" alt="Photo of a deserted house in a grassland"/> 
            <figcaption id="img-caption" >A deserted house in a bushy grassland. Picture captured by Timothy Eberly</figcaption>
      </figure>
    </div>
   
</div>
        <br><br>
        <div class="item4"><button accesskey="b" class="btn" id="tribute-link">Read more on Sankara</button></div>
    
    <br><br><br> 
<section class="scontent">
    <div class="item5" id="tribute-info">
      <h2>IN BRIEF:</h2>
    <br>Became president at 33years.
    <br>Africans leaders had problems with heavy borrowing from IMF and World Bank.
    <br>Land was grabbed and a preserve for the rich/elite.
    <br>Quality of education & health care was wanting.
    <br>There was heavily reliance on donors for infrastructure development.
    </div>
    
    <div class="item6">
    <p><strong>FOREIGN POLICIES:</strong>
             <br>Anti-Imperialism
             <br>National Debt Reduction
             <br>Land Nationalization</p>
               </div>
  
    
    
    <div class="item7">
        <p><strong>ACHIEVEMENTS:</strong>
                <br>PLANTED 10M trees!!
                <br>Appointed more Female to High Govt jobs.
                <br>Activated the local Textile Industry.
        </p>
        </div>
        
    <div class="item8">
        <p><strong>SUCCESS:</strong>
                <br>2.5M Children Vaccinated
                <br>73% Literacy Increase from 13% in 1983.
                <br>Road & Rail infrastructure construction.
                <br>Composed the National Anthem.
                     </p>
        </div>
        </section>     
</main>    
    
<footer id="footer">&copy; 2019. All Rights Reserved. Agnes Mbuya.
   <br> Information Source <a href="https://africa-facts.org/">Click Here...</a>
   <ul><li><img src="https://i.postimg.cc/WzWNYGNJ/github.png" accesskey="2" alt="Github Icon"><a href="https://github.com/aggymbuya" target="_blank"></a></li><li><img src="https://i.postimg.cc/rpNLY1gF/codepen.png" id="img2" alt="codepen icon"><a href="https://codepen.io/aggymbuya"></a></li><li><img src="https://i.postimg.cc/yxtqSv6n/email.jpg" alt="Email icon"><a href="mailto:aggymbuya@gmail.com"></a></li></ul>
</footer>

</body>
</html>
              
            
!

CSS

              
                body {
    
    background-color: #ffffff;
    color: #000000;
    position:relative;
    object-position: top;
    font-size: 16px;
    line-height: 24px;
    font-family: serif;
}

.nav1 {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 35px;
    padding: 0;
    margin: 0;
    background-color: rgb(76,187,23);
    color: rgb(26,26,166);
    
}

li {
    display: inline;
    margin-right: 20px;
    padding-right: 10px;
    border-right: 1px solid #bbb;
}


figcaption {
    font-size: 8px;
    color: black;
    text-align: center;
}


#contactus {
    background-color: #79ac4a;
    font-size: 16px;    
}


@media (min-width: 700px) {
.pcontent {
    display: grid;
    grid-template-columns: 250px 500px 250px;
    grid-template-rows: repeat(4, 10vh);
    grid-template-columns: repeat(4, 30vw);
    grid-gap: 10px;
    grid-template-areas: "item1 item1 item1" "item2 item3 item3" "item4 item4 item4" ". . .";
}
}

.item1 {
    color: rgb(76,187,23);
    grid-row: 1;
    grid-column: 1/4;
    grid-area: item1;
    justify-content: center;
    align-content: center;
    align-items: center;
    grid-template-rows: repeat(3, 10vh);
    grid-template-columns: repeat(3, 30vw);
    width: 90vw;
    height: 10vh;
    z-index: 1;
    text-align: center;
    font-family: cooper bold;
    font-size: 16px;
}

.item2 {
    color: #000000;
    grid-row: 2;
    grid-column: 1 / 2;
    grid-area: item2;
    justify-content: center;
    align-content: center;
    grid-template-rows: repeat(3, 10vh);
    grid-template-columns: repeat(3, 30vw);
    width: 30vw;
    border-radius: 5%;
    grid-auto-flow: row;
    z-index: 2;
    font-size: 16px;
    text-align: center;
}

.item3 {
    background-color: #8fc1e3;
    grid-row: 2;
    grid-column: 2 / 4;
    grid-area: item3;
    width: 500px;
    height: 350px;
    border-radius: 2%;
    z-index: 3; 
}


.responsive-image {
    
    max-width: 480px;
    max-height: 400px; 
    display: block;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.responsive-image:hover {
    opacity: 0.7;
}


.item4 {
    grid-row: 3;
   grid-column: 1 /4;
    grid-area: item4;
    justify-content: flex-end;
    align-content: flex-end;
    grid-template-rows: repeat(3, 10vh);
    grid-template-columns: repeat(3, 30vw);
    width: 20vw;
    border-radius: 5%;
    z-index: 4;
        
}

.btn {
    background-color: rgb(76,187,23);
    font-size: 14px;
    border-style: solid;
    border: 1px solid black;
    height: 36px;
    text-align: center;
}
.btn:hover {
    background-color: sandybrown; 
}



.scontent {
    display: grid;
    grid-template-columns: 250px 500px 250px;
    grid-template-rows: repeat(4, 10vh);
    grid-template-columns: repeat(1, 30vw);
    grid-gap: 30px;
    grid-template-areas: "item5 item6 item7 item8";
 }

.item5 {
    border-radius: 10%;
    width: 300px;
    align-content: stretch;
    grid-row: 1;
    grid-column: 1/2;
    grid-area: item5;
    color: #4CBB17;
    text-align: left;
    font-style: italic;
    font-size: 24px;
    font-family: serif;
}

.item6 {
    grid-row: 1;
    grid-column: 2/3;
    grid-area: item6;
    width: 250px;
    color: sandybrown;
    text-align: center;
    font-style: italic;
    font-size: 24px;
    font-family: serif;
}

.item7 {
    background-color: #ffffff;
    height: 50px;
    width: 200px;
    grid-row: 1;
    grid-column: 3/3;
    grid-area: item7;
    color: #8fc1e3;
    text-align: center;
    font-style: italic;
    font-size: 24px;
    font-family: serif;
}

.item8 {
    background-color: #ffffff;
    height: 200px;
    width: 250px;
    grid-row: 1;
    grid-column: 3/4;
    grid-area: item8;
    color: sandybrown;
    text-align: center;
    font-style: italic;
    font-size: 24px;
    font-family: serif;
}
    
#footer {
    background-color: rgb(76,187,23);
    text-align: center;
    color: darkred;
    width: 100%;
    height: 50px;
}
              
            
!

JS

              
                
              
            
!
999px

Console