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>

<head>
  <link href="https://fonts.googleapis.com/css?family=Varela+Round" rel="stylesheet">
</head>

<main id="main">

  <body>
    <h1 id="title">George Westinghouse</h1>
    <h3> Soldier, Inventor, Businessman</h3>
    <div id="img-div"><img src="http://i68.tinypic.com/5bfr9.jpg" alt="" class="center" id="image">
      <p id="img-caption" class="center">October 6, 1846 – March 12, 1914</p>
    </div>
    <div id="tribute-info">
      <li>Born in 1846 in Central Bridge, New York.</li>
      <li>Enlisted in the New York National Guard at the age of fifteen at the onset of the Civil War.</li>
      <li>Having earned the rank of Corporal, he resigned from the Army and joined the Navy as an assistant engineer on the <em>USS Muscoota</em> until the end of the war. </li>
      <li>Following his discharge from the military in 1865, George enrolled in Union College. He quickly lost interest in his studies and dropped out within the first term.</li>
      <li>At nineteen years old, George created his first invention, the rotary steam engine.</li>
      <li>At twenty-two, after witnessing a train crash caused primarly due to inadequate brakes, he invented a railroad braking system that utilized compressed air. He patented his invention and formed the Westinghouse Air Brake Company in 1869 to manufacture
        and sell the system.
        <li>Founded the Union Switch and Signal Company in 1881 to manufacture and sell railway signals and switches that he invented.</li>
        <li>In the early 1880's, Westinghouse becamse interested in the the field of electric power distribution. First experimenting with DC lighting, he quickly realized the advantages of the European AC distribution systems.</li>
        <li>In 1884 Westinghouse Electric & Manufacturing Company was formed and in 1889 was renamed to Westinghouse Electric Corporation</li>
        <li>In 1891 Westinghouse built a hydroelectric AC power plant, the Ames Hydroelectric Generating Plant. Which was used to supply electricity to the Gold King Mine situated 3.5 miles away. This was the first successful transmission of industrial level
          electric power.
          <li>Died in 1914 in New York City at the age of 67</li>
          </ul>
<br><br>
    </div>
    <div id="quote"><em>"If someday they say of me that in my work I have contributed something to the welfare and happiness of my fellow man, I shall be satisfied."<p>--George Westinghouse</p></em>
    </div>

    <div id="top"></div>
    <div id="bottom"></div>
    <div id="left"></div>
    <div id="right"></div>
    <div id="footer">
      For more information please visit Wikipedia's page on <a href="https://en.wikipedia.org/wiki/George_Westinghouse" target="_blank" id="tribute-link">George Westinghouse</a>.</div>
  </body>
</main>
</>
              
            
!

CSS

              
                body {
  background: #7e918a;
  font-family: "Varela Round", sans-serif;
  margin: 0px;
  padding: 0px;
  color: #d8d8d8;
  border: 10px solid #383d3b;
}

h1 {
  text-align: center;
  background: #383d3b;
  font-size: 50px;
  color: #d8d8d8;
  padding: 10px;
  margin-bottom: 0px;
}
h3 {
  text-align: center;
  background: #383d3b;
  margin-top: 0px;
  max-width: 375px;
  margin-left: auto;
  margin-right: auto;
  border: 5px solid #383d3b;
  border-radius: 0px 0px 25px 25px;
}
.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

img {
  border: 5px solid #383d3b;
  border-radius: 5px 5px 0px 0px;
  height: auto;
  max-width: 200px;
}

#img-caption {
  color: #d8d8d8;
  background: #383d3b;
  max-width: 200px;
  border: 5px solid #383d3b;
  border-radius: 0px 0px 5px 5px;
  margin-top: 0px;
  text-align: center;
}

#footer {
  text-align: center;
  background: #383d3b;
  padding: 10px;
}

a:link {
  color: tomato;
}

a:visited {
  color: purple;
}

#tribute-info {
  color: #383d3b;
  margin-left: 25px;
  margin: auto;
  max-width: 75%;   
}

#quote {
  text-align: center;
  margin: auto;
  font-size: 15px;
  max-width: 75%;
}

              
            
!

JS

              
                
              
            
!
999px

Console