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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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="background1" >
  <div id="background2">
  <h1 class="black-text text-primary align-center" ><b><u>Nikola Tesla</u></b></h1>
    <h2>The Most Gifted Inventor in Modern History</h2>
<img class="smaller-image thin-red-border align-center" src="http://www.activistpost.com/wp-content/uploads/2013/06/tesla.jpg">
  
<p class="black-text"><u>Nikola Tesla</u> was a Serbian American inventor, electrical engineer, mechanical engineer, physicist, and futurist best known for his contributions to the design of the modern alternating current (AC) electricity supply system.</p>
<p1 class="header"><b>Nikola Tesla: Life and Accomplishments</b></p1>
    <div id="accomplishments">
  <ul>
    <li>Tesla was born on 10 July 1856 into a Serb family in the village of Smiljan, Austrian Empire.</li>
    <li>In 1882, Tesla moved to France, where he began working for the Continental Edison Company, designing and making improvements to electrical equipment. In June 1884, he emigrated to New York City in the United States. He was hired by Thomas Edison to work at his Edison Machine Works on Manhattan's Lower East Side. Tesla's work for Edison began with simple electrical engineering and quickly progressed to solving more difficult problems.</li>
    <li>After leaving Edison's company Tesla partnered with two businessmen in 1886, Robert Lane and Benjamin Vail, who agreed to finance an electric lighting company in Tesla's name, Tesla Electric Light & Manufacturing.</li>
    <li>Tesla's demonstration of his induction motor and Westinghouse's subsequent licensing of the patent, both in 1888, put Tesla firmly on the "AC" side of the so-called "War of Currents,"an electrical distribution battle being waged between Thomas Edison and George Westinghouse that had been simmering since Westinghouse's first AC system in 1886.</li>
    <li>Starting in 1894, Tesla began investigating what he referred to as radiant energy of "invisible" kinds after he had noticed damaged film in his laboratory in previous experiments (later identified as "Roentgen rays" or "X-Rays").</li>
</ul>
    <p class="quote">Our virtues and our failings are inseparable, like force and matter. When they separate, man is no more-<i>Nikola Tesla<i></p>

<p3> To Read more about his life and accomplishments, please click <a href="https://en.wikipedia.org/wiki/Nikola_Tesla">here</a></p3>
</div></div>
  </div>
  
  <p class="credit"> Written and coded by <a href="https://www.freecodecamp.com/cgrewal">Chetan Grewal</a></p>
              
            
!

CSS

              
                #background1{
  background-color:black;
  padding: 40px 40px 40px 40px;
  text-align:center;
  }
  #background2{background-color:#EED1CB;
  padding: 25px;
  }
  
  .black-text{color:black;
  }
  .quote{
  font-family: roman;
  font-size:20px;
  color:grey;
  }
.header{
  font-size:20px;
  font-family: arial;
  width:80%;
  margin:auto;
  }
h1
{font-family: Roman;
  font-size:50px;
}
  #accomplishments{
  text-align:left;
  width:80%;
  margin:auto;
  }
  h2{font-size:20px;}
  
  .smaller-image{width:600px; }
  p1{font-size:15px;
 }
  p3{color:blue;
  font-size:14px;}
  
  .credit{
  text-align:center;
  
  }
              
            
!

JS

              
                
              
            
!
999px

Console