css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="black-border">
  <h1 class="text-center">Nikola Tesla</h1>
  <h2 class="text-center">The man who   invented electricity</h2>
  <div class="center img">
  <img class="larger-image" src="http://yesofcorsa.com/wp-content/uploads/2015/10/2202_nikola_tesla.jpg" alt="NikoTheThinker">
</div>
  <p class="box"><b>
  “Be alone, that is the secret of invention; be alone, that is when ideas are born.” 
    ― Nikola Tesla</b>
  </p>
  <div class="silver-box">
  <p class="long-box">
   The life of Nikola Tesla - summary:
  </p>
  <ul class="list-box li">
    <li>Tesla was born "at the stroke of midnight" on July 10th, 1856., with lightning striking during a summer storm. He was born to a Serbian family in Smiljan near Gospić, Lika, (the Military Frontier of Austria-Hungary, now in Croatia). The midwife commented, "He'll be a child of the storm," to which his mother replied, "No, of light."</li>
    <li>Tesla was an 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</li>
    <li>Tesla gained experience in telephony and electrical engineering before emigrating to the United States in 1884 to work for Thomas Edison in New York City. He soon struck out on his own with financial backers, setting up laboratories and companies to develop a range of electrical devices.</li>
    <li>During the 1890s <b>Mark Twain</b> struck up a friendship with inventor Nikola Tesla. Twain often visited him in his lab, where in 1894 Tesla photographed the great American writer in one of the first pictures ever lit by phosphorescent light.</li>
    <li>Tesla was renowned for his achievements and showmanship, eventually earning him a reputation in popular culture as an archetypal "mad scientist". His patents earned him a considerable amount of money, much of which was used to finance his own projects with varying degrees of success.</li>
    <li>Tesla lived his last decades in a New York hotel, working on new inventions even as his energy and mental health faded. His obsession with the number three and fastidious washing were dismissed as the eccentricities of genius. He spent his final years feeding—and, he claimed, communicating with—the city’s pigeons.</li>
    <li>Tesla died in his room on January 7, 1943. Later that year the U.S. Supreme Court voided four of Marconi’s key patents, belatedly acknowledging Tesla’s innovations in radio. The AC system he championed and improved remains the global standard for power transmission.</li>
    </ul>
    <p class="last-box"><i><b>“Invention is the most important product of man's creative brain. The ultimate purpose is the complete mastery of mind over the material world, the harnessing of human nature to human needs.” - Nikola Tesla</b></i></p> 
   <p class="box-box">If you want to learn more about Nikola Tesla,<a href="https://en.wikipedia.org/wiki/Nikola_Tesla"> click here</a>.
    </p>
    </div>
</div>

            
          
!
            
              h1 {
  font-size: 80px;
}
.larger-image {
  width: 100%;
  height: 50%;
}
.center img {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.black-border {
  border-color: black;
  border-width: 10px;
  border-style: solid;
}
.box {
  padding: 10px 20px 10px 150px;
  margin: 10px 20px 10px 20px;
}
.list-box li {
  padding: 10px 20px 10px 10px;
  margin: 10px 20px 20px 50px;
}
.long-box {
  padding: 10px 20px 20px 20px;
  margin: 80px 20px 10px 20px;
  font-size: 30px;
}
.silver-box {
  background-color: silver;
}
.last-box {
  background-color: white;
  padding: 10px 20px 10px 40px;
  margin: 20px 50px 10px 20px;
  font-size: 20px;
}
.box-box {
  margin-top: 30px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  padding-left: 60px;
  font-size: 15px;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console