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://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<html>
  <head>
    <title>Tribute to Dr. APJ Abdul Kalam</title>
    <link href="https://fonts.googleapis.com/css2?family=Playfair+Display&family=Roboto+Condensed:wght@300&display=swap" rel="stylesheet">      
  </head>
  <body>
    <main>
      <div id="main">
        <div class="upper-div">
          <div id="title"> 
            <h1>
              Dr. APJ Abdul Kalam
            </h1>
          </div>
          <div class="image-section">
            <div id="img-div">
                <img id="image" src="https://www.elsetge.cat/imagepost/b/139/1392192_abdul-kalam-hd-wallpaper.jpg" alt=".....">
              <h3 id="img-caption">APJ Abdul Kalam, The Missile Man of India </h3>
            </div>
         </div>
        </div>
        <hr>
        <h2>A little glimpse into the journey of a Legend</h2>
        <div id="tribute-info"> 
           <ol>
             <li>Abdul Kalam was born as Avul Pakir Jainulabdeen Abdul Kalam.</li>
             <li>He served as the 11th president of India from 2002-07.</li>
             <li>Kalam started working at a very young age since he came from a very poor background.</li>
             <li>It is even said, that, to support his family, Kalam used to distribute newspapers after school.</li>
             <li>He did not score good grades but was described as a bright and hardworking student.</li>
             <li>It is also said that he always had a strong desire to learn.</li>
             <li>Abdul Kalam graduated with a degree in Physics in the year 1854.</li>
             <li>At Defense Research and Development Organisation (DRDO), Kalam designed a small helicopter for the Indian army.</li>
             <li>Kalam was transferred to ISRO in 1969 as the project director of India's first satellite launch vehicle (SLV-III) to deploy the Rohini satellite in the earth's orbit.</li>
             <li>Kalam is popularly known as the 'Missile Man of India' for his work on missile and launch vehicle technology.</li>
             <li>His books include Wings of Fire (his autobiography), India 2020- A Vision for the New Millenium, Ignited Minds, My Journey, The Luminous Sparks, Children ask Klama etc.</li>
             <li>In 2009, Kalam became the first Asian to be honoured with the Hoover Medal which is America's top engineering prize. He has also received honorrary doctorates from more than 30 universities.</li>
             <li>Kalam also got honoured by the Government of India with the Padma Bhushan in 1981 and the Padma Vibhushan in 1990.</li>
             <li>He has been honoured with the Bharat Ratna as well in 1997.</li>
           </ol>
         </div>
        <br>
        <div class="footer">
          If you want to know more about Dr. APJ Abdul Kalam then follow this <a href="https://en.wikipedia.org/wiki/A._P._J._Abdul_Kalam" target="_blank">Wikipedia Link</a>
          <br>
          <b>Source: </b><em><a id="tribute-link" href="https://www.indiatoday.in/education-today/gk-current-affairs/story/apj-abdul-kalam-birth-anniversary-1064789-2017-10-14" target="_blank">IndiaToday</a></em>
        <br>
        </div>
      </div>
    </main>
  </body>
</html> 
              
            
!

CSS

              
                *{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font-family: "Roboto Condensed";
}

#main{
  display: flex;
  flex-direction: column;
  width: 94%;
  margin: auto;
  background: hsl(78, 100%, 98%);
}

.upper-div{
  flex: 1;
  display: flex;
  justify-content: center;
}

#tribute-info{
  flex:1;
  padding: 10px;
  width: 80%;
  margin: auto;
}

li{
  padding-top: 5px;
}

#title{
  flex: 1;
  font-family: "Playfair Display";
  font-size: 22px;
  align-self: center;
  margin-left: 10px;
  max-width: 150px;
}

h3{
  font-size: 20px;
}

.image-section{
  flex: 3;
  min-height: 300px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px;
}

#img-div{
  margin: auto;
}

#image{
  display: block;
  width: 92%;
  height: auto;
  max-width: 900px;
  margin: auto;
  /*border-radius: 5%;*/
}



#img-caption{
  text-align: center;
  background-color: rgba(255, 242, 0, 0.1);
  /*padding-top: 15px;
  position: relative;
  bottom: 15px;
  height: 40px;*/
  width: 92%;
  margin: auto;
}

ol {
  margin-left: 35px;
}

h2{
  text-align:  center;
  font-family: "Playfair Display";
  font-weight: 300;
  background: rgba(43, 255, 0, 0.1);
}

.footer{
  background-color: rgba(43, 255, 0, 0.1);
  padding: 0px 35px 0px 35px;
}

@media (max-width: 632px) {
  .upper-div{
    display: flex;
    flex-direction: column;
  }
  #title{
    max-width: 100%;
    font-size: 18px;
  }
  #img-caption{
    font-size: 14px;
  }
  
  h2{
    font-size: 17px;
  }
  ol{
    font-size: 14px;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console