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>

<div id="main">
  <div id="title">
<h1> Qaid-E-Azam Muhmmad Ali Jinnah</h1>
    <h4>Great Leader who Earn a Free State</h4>
  </div>
  <div id="img-div">
  <img src="https://i.postimg.cc/Twbn3jty/gettyimages-502313271-1024x1024.jpg" alt="Qaid-e-Aam" id="image"></img>
  <div id="img-caption">
    <strong>Jinnah with Supporters</strong>
    </div></div>
<div id="info-text">
  
  <ul>
<h3 id="tribute-info">This is a detail about Qaid</h3>
   
     <li><strong>About Family</strong>: jinnah's given name at birth was Mahomedali, and he was born most likely in 1876, to Jinnahbhai Poonja and his wife Mithibai, in a rented apartment on the second floor of Wazir Mansion near Karachi, now in Sindh, Pakistan but then within the Bombay Presidency of British India. Jinnah's family was from a Gujarati Ismaili background, though Jinnah later followed the Twelver Shi'a teachings.</li>
    <br> <li><strong>Great Leader</strong>: jinnah's given name at birth was Mahomedali, and he was born most likely in 1876, to Jinnahbhai Poonja and his wife Mithibai, in a rented apartment on the second floor of Wazir Mansion near Karachi, now in Sindh, Pakistan but then within the Bombay Presidency of British India. Jinnah's family was from a Gujarati Ismaili background, though Jinnah later followed the Twelver Shi'a teachings.</li>
     <br><li><strong>His Work</strong>: jinnah's given name at birth was Mahomedali, and he was born most likely in 1876, to Jinnahbhai Poonja and his wife Mithibai, in a rented apartment on the second floor of Wazir Mansion near Karachi, now in Sindh, Pakistan but then within the Bombay Presidency of British India. Jinnah's family was from a Gujarati Ismaili background, though Jinnah later followed the Twelver Shi'a teachings.</li></ul>
    <br/><blockquote><p>"With faith, discipline and selfless devotion to duty, there is nothing worthwhile that you cannot achieve.
Think 100 times before you take a decision, But once that decision is taken, stand by it as one man."</p>
    </blockquote>
  <div style="text-align:center;">BY JINNAH</div>
  <h3 style="text-align:center;">if you want to know more about Jinnah visit <a href="https://en.wikipedia.org/wiki/Muhammad_Ali_Jinnah" id="tribute-link" target="_blank">MUHAMMAD ALI JINNAH</a></h3>
    </div>
</div>

              
            
!

CSS

              
                #main{ margin:30px auto;
        padding:5px;
background: linear-gradient(90deg, gray, lightblue, rgb(120, 104, 205));
}
#title{ 
text-align:center;}
h1{text-align:center;}

#img-div{
  background-color:white;
  padding:5px;
  border:0px solid white;
  border-radius:5px;
}
#image{
display:block;
margin:0px auto;
max-width:100%;
 margin-bottom:5px;
  height:auto;
}
#img-caption{text-align:center;
margin-bottom:10px;}
  #info-text{ margin-left:30px; }
ul{max-width:550px;
margin:0 auto;}
blockquote{font-style:italic;}
              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console