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. 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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <nav class="navbar">
  <div class="inner">
    <a class="link-to-wiki" href="http://harrypotter.wikia.com/wiki/Severus_Snape" target="_blank">Read about Severus Snape</a>
  </div>
</nav>

<div class="left-container">
  <div class="inner-container">
    <h1 class="heading text-center">Severus Snape</h1>
    <h4 class="heading4 text-center">"After all this time?"<br>"Always."</h4>
    <img class="portrait-image img-responsive" src="http://vignette4.wikia.nocookie.net/harrypotter/images/6/63/SnapeSeverus.jpg/revision/latest?cb=20160103201919" alt="portrait of Professor Snape"></img>
    <p class="caption text-center">Professor Snape portrayed by Alan Rickman in Harry Potter Movie Series</p>
    <hr>
    <div>
      <div class="biographical-info-heading">
        Biographical Information
      </div>
      <div class="biographical-info">
        <ul>
          <li><strong>Born</strong> : January 9, 1960</li>
          <li><strong>Died</strong> : May 2, 1998</li>
          <li><strong>Blood Status</strong> : Half-Blood</li>
          <li><strong>Marital Status</strong> : Single</li>
        </ul>
      </div>
      <div class="occupations-info-heading">
        Occupations & Affiliation
      </div>
      <div class="occupations-info">
        <ul>
          <li><strong>Hogwarts</strong> : Potions Master (1981-1996)</li>
          <li><strong>Hogwarts</strong> : Head of Slytherin House (1981-1997)</li>
          <li><strong>Hogwarts</strong> : Professor of Defence Against the Dark Arts (1996-1997)</li>
          <li><strong>Hogwarts</strong> : Headmaster (1997-1998)</li>
          <li><strong>House</strong> : Slytherin</li>
        </ul>
      </div>
    </div>
    <div>
      <p class="summary">Professor Severus Snape (9 January, 1960 – 2 May, 1998) was a half-blood wizard and son of Tobias and Eileen Snape (née Prince). During his lifetime, Snape was Potions Master (1981-1996), Defence Against the Dark Arts professor (1996-1997), and
        Headmaster (1997-1998) of Hogwarts School of Witchcraft and Wizardry (which he attended as a student from 1971 to 1978.) He was also a member of the Order of the Phoenix and played a very important role in both of the Wizarding Wars against Voldemort.
      </p>
      <h4>Famous Quotes and Scenes</h4>
      <div>
        <div class="well quoteblock">
          <p>“You are here to learn the subtle science and exact art of potion-making. As there is little foolish wand-waving here, many of you will hardly believe this is magic. I don't expect you will really understand the beauty of the softly simmering
            cauldron with its shimmering fumes, the delicate power of liquids that creep through human veins, bewitching the mind, ensnaring the senses. I can teach you how to bottle fame, brew glory, even stopper death — if you aren't as big a bunch
            of dunderheads as I usually have to teach.”</p>
          <footer class="quotefooter"><cite>—Harry Potter and the Sorcerer's Stone<cite></footer>
        
    <img class="movie-scenes" src="https://lovelace-media.imgix.net/uploads/432/e5b54970-7e8f-0132-1d7f-0a2c89e5f2f5.gif"></img>
        </div>
          <div class="quoteblock">
            <p>“Ah, yes. Harry Potter. Our new — celebrity.”</p>
          <footer class="quotefooter"><cite>—Harry Potter and the Sorcerer's Stone<cite></footer>
        
    <img class="movie-scenes" src="https://lovelace-media.imgix.net/uploads/432/386d7300-ed7f-0133-8014-0e31b36aeb7f.gif"></img>
          </div>
            <div class="quoteblock">
            <p>“Dumbledore watched her fly away, and as her silvery glow faded he turned back to Snape, and his eyes were full of tears.
"After all this time?"
"Always," said Snape.”</p>
          <footer class="quotefooter"><cite>— Harry Potter and the Deathly Hallows<cite></footer>
        
    <img class="movie-scenes" src="https://lovelace-media.imgix.net/uploads/432/48a32530-ed80-0133-8016-0e31b36aeb7f.gif"></img>
          </div>
              <div class="end-credits">
                <p>Tribute to Professor Snape & Alan Rickman <br> Heroes can be found in the most unlikely places.</p>
              <img src="https://lovelace-media.imgix.net/uploads/432/ab60a380-ed80-0133-800b-0e31b36aeb7f.gif"></img>
    </div>
  </div>
  </div>
              
            
!

CSS

              
                body {
  background-image: url(https://s-media-cache-ak0.pinimg.com/originals/fd/52/a9/fd52a9899aababb3c3a1bccea0525c2d.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-color: #000;
  color: #fff;
}
.inner {
  background: rgba(51, 51, 51, .5);
  margin: -15px -15px -15px -15px;
  position: relative;
  text-align: center;
}
.inner a {
    display: inline-block;
    border: 1px solid #fff;
    font-size: 14px;
    line-height: 24px;
    border-radius: 3px;
    padding: 2px 15px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    margin: 20px 10px 5px 10px;
}

.left-container {
  background: rgba(51, 51, 51, .5);
  height: auto;
  width: 55%;
  border: #C0C0C0 1px solid;
  margin-top: 20px;
  border-radius: 3px;
}
.heading {
  font-family: 'IM Fell Double Pica', serif;
	font-style: normal;
	font-variant: normal;
	line-height: 26.4px;
  padding-top: 20px;
  color: #fff;
}

.heading4 {
  font-family: 'IM Fell Double Pica', serif;
	font-style: normal;
	font-variant: normal;
	line-height: 20px;
  color: #fff;
  padding-top: 5px;
}

.portrait-image {
  display: block;
  margin: 0px auto;
  max-width: 100%;
}

.inner-container{
  margin: 2px 10px 2px 10px;
}

.caption {
  font-size:14px;
  font-style: italic;
}

hr {
  background-color: #000
}

.biographical-info-heading, .occupations-info-heading {
  padding: 2px 2px 2px 5px;
  font-weight: 600;
  background-color: #1a472a;
  border-bottom: 2px solid #000;
  color: #fff;
}
.occupations-info-heading {
  margin-top: -15px;
}
ul {
    padding: 5px;
    list-style-type: none;
}
.biographical-info, .occupations-info {
  font-size:13px;
  background-color: #aaaaaa;
  color:#000;
}

.summary {
  color: #fff;
}

.movie-scenes {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.quoteblock {
  border: #333 1px solid;
  margin: 5px 5px 20px 5px;
  border-radius: 2px;
  padding: 5px 5px 5px 5px;
  border-top: 1px solid #333;
}

.quotefooter {
  margin-top: -10px;
  margin-left: 40px;
}

hr {
margin: 17px 0 18px;
height: 0;
clear: both;
border: solid #000;
border-width: 1px 0 0;
border-top: 1px solid #333;
border-bottom: 1px solid #000;
}

.end-credits p{
  font-family: 'IM Fell Double Pica', serif;
	font-style: normal;
	font-variant: normal;
	line-height: 26.4px;
  padding-top: 20px;
  color: #fff;
  font-size: 20px;
  text-align: center;
}

.end-credits img{
  display: block;
  margin: 0 auto;
  max-width: 100%;
}
              
            
!

JS

              
                $(function () {
    var $element = $('.end-credits');
    function fadeInOut () {
        $element.fadeIn(1000, function () {
            $element.fadeOut(1500, function () {
                $element.fadeIn(1500, function () {
                    setTimeout(fadeInOut, 500);
                });
            });
        });
    }

    fadeInOut();
});
              
            
!
999px

Console