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 id="main">
<h1 id="title">Charles Babbage</h1>
  <p id="caption">The Father of the Computer</p>

<div id="img-div"> <img id="image" src="https://cdn.britannica.com/s:700x500/12/194612-050-6100BA16/Charles-Babbage.jpg" alt="A Picture of Charles Babbage - The Father of the Computer.">
  <p id="img-caption">Wellcome Library, London</p>
</div>

  <div id="tribute-info"><strong>Here is a timeline of Mr. Charles Babbage' life:</strong>

<ul>
  <li><strong>1791</strong> - Born in London, England</li>
  <li><strong>1810</strong> - Babbage arrived at Trinity College, Cambridge. He was already self-taught in some parts of contemporary mathematics</li>
  <li><strong>1812</strong> - Babbage transferred to Peterhouse, Cambridge. He was the top mathematician there, but did not graduate with honours. He instead received a degree without examination in 1814.</li>
  <li><strong>1815</strong> - He lectured to the Royal Institution on astronomy, and was elected a Fellow of the Royal Society a year later.</li>
  <li><strong>1820</strong> - Babbage was instrumental in founding the Royal Astronomical Society, initially known as the Astronomical Society of London. Its original aims were to reduce astronomical calculations to a more standard form, and to circulate data. These directions were closely connected with Babbage's ideas on computation.</li>
  <li><strong>1822</strong> - Originated the concept of a programmable general-purpose computer. He decided to make a machine to calculate the polynomial function—a machine which would calculate the value automatically.</li>
  <li><strong>1823</strong> - British government gave Charles Babbage £1700 (probably the first ever seed funding).</li>
  <li><strong>1824</strong> - He won its Gold Medal, cited "for his invention of an engine for calculating mathematical and astronomical tables.</li>
  <li><strong>1828 to 1839</strong> - Babbage was Lucasian Professor of Mathematics at Cambridge. He wrote three topical books during this period of his life.</li>
  <li><strong>1832</strong> - He was elected a Foreign Honorary Member of the American Academy of Arts and Sciences.</li>
  <li><strong>1837</strong> - Designed the Analytical Engine and built a prototype for a less powerful mechanical calculator. Babbage developed some two dozen programs for the Analytical Engine between 1837 and 1840.</li>
  <li><strong>1845</strong> - Babbage had solved a cipher that had been posed as a challenge by his nephew Henry Hollier, and in the process, he made a discovery about ciphers that were based on Vigenère tables. Specifically, he realised that enciphering plain text with a keyword rendered the cipher text subject to modular arithmetic.</li>
  <li><strong>1854</strong> - Babbage published the solution of a Vigenère cipher, which had been published previously in the Journal of the Society of Arts.</li>
  <li><strong>1855</strong> - Babbage also published a short letter, "Cypher Writing", in the same journal. Nevertheless, his priority was not established until 1985.</li>
  <li><strong>1871</strong> - Died at the age of 79.</li> 
</ul>
</div>
  
<blockquote>"Errors using inadequate data are much less than those using no data at all." -
Charles Babbage</blockquote>


<h3>To know more about this gentleman, read his <a id="tribute-link" href="https://en.wikipedia.org/wiki/Charles_Babbage" target="_blank">Wikipedia entry.</a></h3>

</div>
              
            
!

CSS

              
                body {
  margin: 20px 10px 20px 10px;
  padding: 0;
  font-family: sans-serif, monospace; 
  background: #ffffff;
  text-align: center;
}

#title {
 font-size: 2.5em;
 padding-top: 60px;
}

#image {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: block;  
}

#img-div{
  margin: 20px;
  padding: 30px;
  background: #ffffff;
  border-radius: 10px;
}

#main {
  background: #ffeaa7;
  border-radius: 10px;
}

#tribute-info{
  width: 850px;
  margin: auto;
  padding-bottom: 20px;
  line-height: 1.8em;
  text-align: justify;
}

h3 {
  padding: 20px 0 50px 0;
}
              
            
!

JS

              
                
              
            
!
999px

Console