Pen Settings



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


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


Add Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import or require. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.


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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

                <div class="container-fluid">
      <div class="row">
      <div class="col-md-12 text-center">
        <h1 id="title">HERMIONE GRANGER</h1>
        <h2 id="byLine">I mean, you could claim that anything's real if the only basis for believing in it is that nobody's proved it doesn't exist!</h2>
       </div> <!-- titles col closing div -->
    </div> <!-- titles row closing div -->
    <div class="myBox">
      <div class="row magicalAbilities">
        <div class ="col-md-8">
        <h2>Magical Abilities</h2>
      <p>Half-giant jinxes peg-leg gillywater broken glasses large black dog Great Hall. Nearly-Headless Nick now string them together, and answer me this, which creature would you be unwilling to kiss? Poltergeist sticking charm, troll umbrella stand flying cars golden locket Lily Potter. Pumpkin juice Trevor wave your wand out glass orbs, a Grim knitted hats. Stan Shunpike doe patronus, suck his soul Muggle-Born large order of drills the trace. Bred in captivity fell through the veil, quaffle blue flame ickle diddykins Aragog.</p>
          </div> <!-- magicalAbilities col 8 closing div -->
        <div class ="col-md-4">
    <img class="img-responsive avatar" alt="Girl with brown hair and a serious face" src=""/>
     </div> <!-- magicalAbilities col 4 closing div -->
      </div> <!-- magicalAbilities row closing div -->
   <div class="row biography">
      <div class ="col-md-12">
      <p>Alohamora wand elf parchment, Wingardium Leviosa hippogriff, house dementors betrayal. Holly, Snape centaur portkey ghost Hermione spell bezoar Scabbers. Peruvian-Night-Powder werewolf, Dobby pear-tickle half-moon-glasses, Knight-Bus. Padfoot snargaluff seeker: Hagrid broomstick mischief managed. Snitch Fluffy rock-cake, 9 ¾ dress robes I must not tell lies.</p>
      <p>Mudbloods yew pumpkin juice phials Ravenclaw’s Diadem 10 galleons Thieves Downfall. Ministry-of-Magic mimubulus mimbletonia Pigwidgeon knut phoenix feather other minister Azkaban. Hedwig Daily Prophet treacle tart full-moon Ollivanders You-Know-Who cursed. Fawkes maze raw-steak Voldemort Goblin Wars snitch Forbidden forest grindylows wool socks.</p>
      <p>Thestral dirigible plums, Viktor Krum hexed memory charm Animagus Invisibility Cloak three-headed Dog. Half-Blood Prince Invisibility Cloak cauldron cakes, hiya Harry! Basilisk venom Umbridge swiveling blue eye Levicorpus, nitwit blubber oddment tweak. Chasers Winky quills The Boy Who Lived bat spleens cupboard under the stairs flying motorcycle. Sirius Black Holyhead Harpies, you’ve got dirt on your nose. Floating candles Sir Cadogan The Sight three hoops disciplinary hearing. Grindlewald pig’s tail Sorcerer's Stone biting teacup. Side-along dragon-scale suits Filch 20 points, Mr. Potter.</p>
        <a href="" target="_blank"><button type="button" class="button">Further Information</button></a>
     </div> <!-- biography col closing div -->
     </div> <!-- biography row closing div -->
      <div class="row">
      <div class="col-md-12">
    <p id="copyright"> &copy; Jessica Scanlan</p>
        </div> <!-- footer col closing div -->
      </div> <!-- footer row closing div -->
     </div>  <!-- myBox closing div -->          
</div> <!-- container-fluid closing div --> 
              /* background and name */

body {
  height: auto;
  max-width: 100%;
  background-color: #fff;
  background-image: linear-gradient(60deg, rgba(191, 97, 63, 0.5) 5%, rgba(63, 127, 191, 0.35)), url("");
  background-size: auto;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;

#title {
  color: rgba(255, 255, 255, 1);
    /*rgba(168, 36, 36, 1);*/
  font-family: Poiret One, Work Sans, sans-serif;
  font-size: 3em;
  letter-spacing: 0.20em;
	font-weight: bold;
  border: 3px solid white;
  margin: 5em 0 3em 0em;
  text-shadow: 0px 1px, 1px 0px, 1px 1px;
  display: inline-block;
  padding: 10px 15px 10px 15px;

#byLine {
  color: rgba(255, 255, 255, 1);
  font-size: 1.25em;
  letter-spacing: 0.10em;
  margin: 0 auto;
  max-width: 50%;
  padding: 0 0 4em 0em;
  font-family: Poiret One, Work Sans, sans-serif;

/* content section */

.myBox {
    background-color: rgba(252, 248, 242,.95);
    text-align: center;
    font-family: Raleway, Work Sans, sans-serif;
  	margin: auto;
    width: 60%;
    padding: 2em 2em 0.5em 2em;
    border-radius: 5px;
    max-width: 50em;
    min-width: 27em;

h2 {
  font-family: Poiret One;
  font-weight: bold;
  color: rgba(168, 36, 36, 1);
  letter-spacing: 0.10em;

.avatar {
    display: block;
    margin: auto;
    border: 1px solid darkgrey;
    border-radius: 5px;

.button {
    background-color: rgba(168, 36, 36, .95);
    border: none;
    color: white;
    padding: 8px 8px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 5px;
    font-family: Poiret One, sans serif;

#copyright {
  font-size: .8em;
  margin: .5em 0 0 0;
  text-align: center;

.biography {
  padding: .5em 0 0 0;

p {
  text-align: left;

/* mobile requirements */
@media only screen and (max-device-width: 480px)  {

		.myBox {
			min-width: 320px;
   body {
      background-color: rgba(168, 36, 36, .95);
      background-image: linear-gradient(60deg, rgba(191, 97, 63, 0.5) 5%, rgba(63, 127, 191, 0.35));
  p {
    text-align: center;