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

              
                <div class="wrapper">
        <div class="pic"><img src="http://3.1m.yt/VmzPC3S.png" alt=""></div>
        <div class="timeline">
          <h2>Here's a brief time line of Jinnah's life:</h2>
          <ul>
            <li><span>1876</span> &nbsp;-&nbsp; M. A. Jinnah was born to Jinnah bhai Poonja and Methibai Jinnah on 25th December 1876 in Karachi.</li>
            <li><span>1887</span> &nbsp;-&nbsp; Admitted to Sind Madrasatul Islam, Karachi</li>
            <li><span>1892</span> &nbsp;-&nbsp; Married Emibai at the age of 16, Left Karachi for Europe</li>
            <li><span>1893</span> &nbsp;-&nbsp; Joined Lincoln’s Inn to study Law.</li>
            <li><span>1896</span> &nbsp;-&nbsp; He was enrolled as a barrister in Bombays' high court.</li>
            <li><span>1904</span> &nbsp;-&nbsp; Started political career by attending Indian National Congress 20th Session in Bombay.</li>
            <li><span>1905</span> &nbsp;-&nbsp; Partition of Bengal was a historic moment which led to the foundation of All India Muslim League in 1906.</li>
            <li><span>1916</span> &nbsp;-&nbsp; Lucknow pact between All India Muslim League and Congress. Jinnah was the principal architect of the pact.</li>
            <li><span>1918</span> &nbsp;-&nbsp; M. A. Jinnah married Ruttie at Jinnah House in Bombay. The couple separated on 20th February, 1929.</li>
            <li><span>1927</span> &nbsp;-&nbsp; M. A. Jinnah presided a meeting of Muslim Leaders in Delhi and proposed some suggestions.</li>
            <li><span>1929</span> &nbsp;-&nbsp; M. A. Jinnah presented the famous 14 points.</li>
            <li><span>1930</span> &nbsp;-&nbsp; First Round Table Conference held in London to discuss the political situation in India.</li>
            <li><span>1931</span> &nbsp;-&nbsp; M. A. Jinnah took residence in London for 4 years.</li>
            <li><span>1944</span> &nbsp;-&nbsp; Jinnah-Gandhi Talks held in Bombay to discuss political solutions for Hindu-Muslim Unity.</li>
            <li><span>1947</span> &nbsp;-&nbsp; Pakistan came into being as a sovereign independent state for Muslim of sub-continent. M. A. Jinnah takes oath as the first Governor General of Pakistan.</li>
            <li><span>1948</span> &nbsp;-&nbsp; Despite his deteriorating health, he visited various cities in all provinces on different occasions. He was diagnosed with Tuberculosis in 1930’s. Jinnah resided at a hill station Ziarat, Baluchistan on advice of doctors. He resided there till 11th September, 1948. He was flown to Karachi on 11th September 1948. He died the same Day as he arrived Karachi.</li>
          </ul>
        </div>
        <blockquote>
          <p class="quote">"Though Jinnah’s scheme of partition was good, it would take at least 25 years to take shape. But great wars and great men shorten history, and Jinnah was such a man who could alter the history of a nation."</p>
          <p class="author">- Lord Lothian</p>
        </blockquote>
        <p class="wiki">If you have time, you should read more about this incredible human being on his <a href="https://en.wikipedia.org/wiki/Muhammad_Ali_Jinnah" target="_blank">Wikipedia entry</a>.</p>
  </div>
  <footer>
    <p>&copy; 2017 Created by <a href="https://www.freecodecamp.com/naeemrind" target="_blank">Naeem Rind</a> for FreeCodeCamp</p>
  </footer>
              
            
!

CSS

              
                * {
    box-sizing: border-box;
    font-family: 'Didact Gothic', sans-serif;
    font-weight: 100;
    margin: 0;
    padding: 0;


  }
  html, body {
    background: #e9e9e9;
    overflow-x: hidden;
    width: auto;
    height: 100%;
       
  }
  .wrapper {
   
    background-image: url(http://4.1m.yt/K4qhPQG.jpg);
    background-size: 120%;
    background-attachment: fixed;
    width: 100%;
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    padding-bottom: 30px;
  }

  .pic {
    /*border: 1px solid red;*/
    width: 100%;
  }
  .pic img {
    width: 100%;
  }

  .timeline h2 {
    color: black;
    font-size: 45px;
    font-weight: 100;
    margin-bottom: 48px;
    margin-top: 40px;
    width: 100%;
    text-align: center;
  }
  .timeline ul {
    
    /*border: 1px solid;*/
    background: #143639;
    width: 100%;
    padding-bottom: 70px;
    padding-top: 70px;
    padding-left: 70px;
    padding-right: 70px;
  }

  .timeline li {
    color: #d1d1d1;
    font-size: 18px;
    line-height: 25px;
    list-style-type: circle;
    list-style-position: inside;
    text-align: justify;
    margin-bottom: 10px;
  }
  li span {
    color: #13abb0;
    font-family: 'Droid Sans Mono', monospace;
    font-size: 16px;
  }
  blockquote {
   
    color: black;
    border: 1px solid;
    font-size: 25px;
    line-height: 30px;
    width: 85%;
    padding: 30px;
    overflow: auto;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
  }
  blockquote .quote {
    text-align: center;
  }
blockquote .author {
  text-align: center;
}
  .wiki {
     
    text-align: center;
    font-size: 16px;
    margin-top: 20px;
  }
  .wiki a {
    text-decoration: none;
    color: blue;
  }
  footer {
    width: 100%;
    height: 70px;
    background: #143639;
    position: relative;
  }
  footer p {
    color: rgb(231, 231, 231);
    font-size: 14px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    text-align: center;
  }
  footer a {
    color: white;
    text-decoration: underline;;
  }
/* IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII */
/* ---------------- MEDIA QUERIES BELOW ---------------- */
  @media screen and (max-width: 768px) {
.timeline h2 {
  font-size: 36px;
}
 .timeline li {
  text-align: left;
}
blockquote {
  font-weight: 900;
  font-size: 18px;
}


}
@media screen and (max-width: 370px) {
 .wrapper {
  background: #adadad;
}
  .timeline h2 {
    font-size: 20px;
    margin-bottom: 20px;
    margin-top: 18px;
    font-weight: bold;
  }
  .timeline ul {
    padding: 30px;
  }
  .timeline li {
    font-size: 14px;
    line-height: 20px;
    text-align: left;
  }
  li span {
    font-size: 14px;
  }
  blockquote {
    font-size: 14px;
    line-height: 22px;
    padding: 15px;
    
  }
  blockquote .quote {
    font-weight: bold;
  }
  blockquote .author {
    font-weight: bold;
  }
  .wiki {
    width: 96%;
    margin-left: auto;
    margin-right: auto;
    font-weight: bold;
    color: #535353;
  }
  .wiki a {
    font-weight: bold;
  }
footer p {
  font-size: 12px;
  letter-spacing: 0.6px;
}
}
              
            
!

JS

              
                /* By : Naeem Rind */
/* CSS Media Queries */

/* BreakPoints 768px and 370px */
              
            
!
999px

Console