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">
<div id="title">
  <h1>James Goodfellow</h1>
</div>
  <h2>Founder of the chip & pin</h2>
  <div id="img-div">
    <div id="image">
    <img src="https://www.sundaypost.com/wp-content/uploads/sites/13/2018/02/8pacsp_ATMgraffiti7.jpg-900x540.jpg" alt "james goodfellow">
 
    <div id="img-caption">
      James Goodfellow on the left.
    </div>
      </div>
  </div>
  </div>
  <div id="tribute-info">
    <p>
      James Goodfellow OBE (born 1937 in Paisley, Renfrewshire) is a Scottish inventor. </p>
    <p>He was educated at St Mirin's Academy in his home town. </p>
    
    <p>In 1966, he patented personal identification number (PIN) technology, and the cash machine.</p>

<p>He was a development engineer given the project of developing an automatic cash dispenser in 1965. His system accepted a machine readable encrypted card, with a numerical PIN keypad.
    </p>
    <h3>read more on his <a id="tribute-link" href="https://en.wikipedia.org/wiki/James_Goodfellow" target="_blank">Wikipedia entry</a>.</h3>
      </div>
   </div>
  
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Staatliches');


body{
 font-family: 'Staatliches', cursive;
  min-width:500px;
  background: linear-gradient(#dae2f8, #d6a4a4); 
  text-align:center; 
}

#main {
  margin:20px auto;
  padding:10px;
}

#title { 
 text-decoration: underline;
}

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

}

#img-div{
  display:block;
  margin-left: auto;
  margin-right: auto;
  width:100%;
}

#img-caption{
  margin:10px;
  font-size: 15px;
  text-decoration: underline;
}

#tribute-info{
  max-width:550px;
  margin:0 auto;
  font-size: 20px;
}

#tribute-link{
  font-style:bold;
  text-decoration:underline;
}
              
            
!

JS

              
                
              
            
!
999px

Console