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

              
                <head>
  <title> Benjamin Franklin</title>
</head>
<body>
<div id="main">
  <div id="title">
    <h1> Benjamin Franklin</h1>
  <p>6th President of Pennsylvania</p>
  </div>
    
  <div id="img-div"> 
    <img src="https://i.postimg.cc/mrcHBRDH/benjamin-franklin.jpg" alt="" id="image">
    <div id="image-caption">
      <p>A picture he took which was use as the face of the 100 dollar bill</p>
    </div>
  </div>
  
  <div id="tribute-info">
    <h2>Here is a timeline of  Benjamin Franklin</h2>
    <ul>
      <li>Born in Boston Massachusetts in <strong>1706</strong>
        <li>He was the 6th President of Pennysylvanina in the year <strong>October 18, 1785-November 5, 1788</strong>
          <li>United States Minister to Sweden in the year <strong> September 28, 1782-April 3, 1783</strong>
            <li>United States Minister to France in the year<strong> March 23, 1779- May 17, 1785</strong>
              <li> 1st United States postmaster General in the year<strong>July 26, 1775-November 7,1776.</strong>
                <li>Speaker of the Pennsylviania Assembly in the year<strong>May 1764-October 1764</strong>
                  <li>Benjamin Franklin became a sucessful mewspaper editor and priter in Philadelphia, the leading city in the colonies.
      <li> He died on <strong>April 17, 1790</strong>
    </ul>
    <p><b>Benjamin Franklin was one of the Founding Fathers of the United States and a Major Figure in his discoveries and theories regarding electricity.</p>
      <h2> If you have time you should read more about this founding father <a href="https://en.wikipedia.org/wiki/Benjamin_Franklin" target="_blank">HERE</a>  
    </h2>
    
    <p> written by Greater</p>
    
                    
  </div>
   
    
    
    
    
    
  </body>
              
            
!

CSS

              
                body{background-color:#f45689;
    color:#000000;
    text-align: center;
  margin: auto;
   height: auto;}


  
}

h1{
  font-size:4rem;
    font-family:sans-serif;}
p{font-size: 20px;}

h2{line-height:1.6;}

#img-div{ background-color:#fff;
   margin: auto;
  max-width:100%;
  height:auto;
  display:block;
  }

#img{max-width:100%;
height:auto;}

#title{ background-color:#86f026;
  padding:15px 10px;
  width: auto;
  height: auto;
  font-size:20px;
   }
ul {max-width:550px;
   margin: 0 auto 50px auto;
   text-align: left;
line-height: 1.6;}

li{margin: 16px 0;
font-size:20px;
}




              
            
!

JS

              
                
              
            
!
999px

Console