Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <!doctype html>
<html class="no-js" lang="">

<head>
  <meta charset="utf-8">
  <title>Ben Franklin Tribute</title>
  <meta name="description" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <link rel="manifest" href="site.webmanifest">
  <link rel="apple-touch-icon" href="icon.png">
  <!-- Place favicon.ico in the root directory -->

  <link rel="stylesheet" href="css/normalize.css">
  <link rel="stylesheet" href="css/main.css">

  <meta name="theme-color" content="#fafafa">

</head>

<body>
  <!--[if IE]>
    <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
  <![endif]-->

  <!-- Add your site or application content here -->
<main id="main">
  <div id="title">
    <p>
      <h3>I had a hard time settling on who to do a tribute page. My original one was on an anime character and I had to ask myself who
      did I look up to that actually had a pulse? I never had many heroes, but I have found myself using this man’s quotes more
    than once. So introduce you to my tribute page for Benjamin Franklin.</h3>
    </p>
  </div>
</main>
<div id="img-div">
    <div><img class="square" id="image" src="https://i.postimg.cc/xTkNZThh/ben1.jpg" alt="picture of Benjamin Franklin"></div>
    <div><img class="square" id="image" src="https://i.postimg.cc/PrBvnnkx/ben2.jpg" alt="picture of Benjamin Franklin"></div>
    <div><img class="square" id="image" src="https://i.postimg.cc/DwLJ2p2c/ben4.jpg" alt="picture of Benjamin Franklin"></div>
  <p id="img-caption">Pictures of Ben through out his life</p>
</div>

<section>
  <p id="tribute-info">
    <strong>Benjamin Franklin</strong> was born January 17, 1706, died April 17, 1790. Father Josiah Franklin and mother Abiah Folger birthed him
    in Boston Massachusetts. An inventor, polymath, newspaperman, physicist, chess player, musician, writer, and the 6th president
    of Pennsylvania (Oct. 18 1785 - Nov. 5, 1788). He was highly decorated in science, politics, and the founding ways of what it
    meant to have colonial unity and how to be a true American. He owned slaves, but became weary in 1750 arguing against the
    economic casualties of the use of them making him an abolitionist also. This man’s life was more than colorful, touching
    everything from Freemasonry to being the first US Postmaster General, the first U.S. ambassador to France. Signer of the
    Constitution and Declaration of Independence, he also made a splash in writing under the alias “Richard Saunders,” with the
    “Poor Richard’s Almanack.” Even working with the physicist Leonhard Euler to study the theory of light. There is more
    information than can be put in one webpage! He’s the face of the 2nd to highest bill in our country but was never a
    US president. Benjamin represented what was called “Generic religion” he was religious in a sense of acting and being.
    Not belonging to a church or certain faction, he was accepted by all. It’s something I highly agree with because these days
    there are as many churches and views as there are gangs. This man was completely different, an American Michelangelo or
    Da Vinci if you will. He achieved a generation of some mens work in one lifetime through hard work and perseverance.
    I love his attitude and ability to plan and execute, he would write down a schedule for the day and do his best to achieve
    all daily goals with military precision.
  <blockquote>
  <h2>
  "Some people die at 25 and aren't buried until 75."
</h2>
</blockquote>
  <cite>My favorite Ben Franklin quote.</cite>
</section>
  <footer>
    <p>
      Honestly I didn’t know where to begin or end with this man's life, he was more than interesting. Ben Franklin was one of
      our “Founding fathers” and my favorite one of all time. So this is my tribute to him. Hope you enjoyed your time here and
      drop by <a href="http://en.wikipedia.org/wiki/Benjamin_Franklin" id="tribute-link" target="_blank">Wikipedia</a> and read up more on him if you have the chance!
    </p>
  </footer>
</body>

</html>

              
            
!

CSS

              
                
   html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}




 /* ==========================================================================
   Author's custom styles
   ========================================================================== */


body {
  background-color: rgb(136,155,115);
}

#img-div img {
  display: block;
  margin: auto;
  padding: 10px;
}

.square {
  display: inline-block;
  max-width: 200vh;
  max-height: auto;
  margin:1.66%;
  background-repeat:no-repeat;
  background-size:cover;
}





/* ==========================================================================
  Helper classes
  ========================================================================== */

/*
 * Hide visually and from screen readers
 */

 .hidden {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap; /* 1 */
}

/*
* Extends the .visuallyhidden class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
  white-space: inherit;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
  content: " "; /* 1 */
  display: table; /* 2 */
}

.clearfix:after {
  clear: both;
}

 
/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

   @media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

 
/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

   @media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}


              
            
!

JS

              
                 <script src="js/vendor/modernizr-3.7.1.min.js"></script>
  <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
  <script>window.jQuery || document.write('<script src="js/vendor/jquery-3.3.1.min.js"><\/script>')</script>
  <script src="js/plugins.js"></script>
  <script src="js/main.js"></script>

  <!-- Google Analytics: change UA-XXXXX-Y to be your site's ID. -->
  <script>
    window.ga = function () { ga.q.push(arguments) }; ga.q = []; ga.l = +new Date;
    ga('create', 'UA-XXXXX-Y', 'auto'); ga('set','transport','beacon'); ga('send', 'pageview')
  </script>
  <script src="https://www.google-analytics.com/analytics.js" async defer></script>
  <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
              
            
!
999px

Console