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

              
                <link href="https://fonts.googleapis.com/css?family=Shrikhand" rel="stylesheet">

<div id="main">
<div id="section1" class="container-fluid bg-1 text-center">
  <div class ="row">
    <div class="col-md-6 offset-md-1 col-lg-5 offset-lg-2 align-self-center">
      <h2 id="title">Tribute to Storm, the Hero Dog.</h2>
      <p>I want to pet him a lot. Everyone wants to pet him.</p>
      <blockquote id="tribute-info">
        <p>Storm, a 6-year-old English golden retriever, pulled a fawn from Port Jefferson Harbor. The fawn is recovering at Save the Animals Rescue Foundation in Middle Island, N.Y.</p>
        <p>Clearly, he is a hero.</p>
        <p>“Good boy, Storm!” a man’s voice says in the video, calling to a golden retriever paddling toward a brown lump bobbing in the water. Taking it in his mouth, the dog hauls it toward the beach.</p>
        <p>The lump was a fawn, which the dog dragged onto the sand. There it lay, alive but barely moving.</p>
        <p>Storm gently nudged the fawn’s belly. It scarcely responded. He nuzzled it again. Nothing. He pawed at its tiny hooves. Then the video ended.</p></blockquote>
    </div>
    <div id="img-div" class="col-md-5 col-lg-5 text-center align-self-center">
      <img id="image" src="https://i.imgur.com/8chY9A3.jpg">
      <p id="img-caption">Photo of Storm the Dog, Credit to <a href="https://www.nytimes.com/2017/07/18/nyregion/dog-rescues-a-drowning-deer-and-becomes-a-social-media-hero.html" target="_blank">Johnny Milano for The New York Times</a>.</p>
    </div>
  </div>
</div>

<div id="section2" class="container-fluid bg-2 text-center">
  <h2>Facts about Storm</h2>
  <ul class="container text-justify">
  <li>Character witnesses for Storm include a parade of foster puppies the Freeleys have taken in over the last month. “They tortured this poor guy,” Mr. Freeley said. “And he did nothing.”</li>
  <li>The family’s rabbit, Speedo, often sleeps on the dog’s back. Although Storm adamantly refuses to fetch, Mr. Freeley said, the dog seemed to know the stakes were high in retrieving the fawn.</li>
  <li>“A dog with his need to retrieve spearheaded the rescue,” said Ms. Kutzing, the animal rescuer. The details, she said, do not really matter “as long as the ending is happy.”</li>
  </ul>
</div>

<div id="section3" class="container-fluid bg-3 text-center">
  <h2>Found out more about this story by following this <a href="https://www.nytimes.com/2017/07/18/nyregion/dog-rescues-a-drowning-deer-and-becomes-a-social-media-hero.html" target="_blank">link</a>!<br>
  If you just want to know more about golden retriever click <a href="http://www.countryliving.com/life/kids-pets/news/a35634/15-things-you-didnt-know-about-golden-retrievers/" target="blank">here</a>.</h2>
</div>

<div id="footer" class="container-fluid small text-center">
  <p>coded by marine. text from <a href="https://www.nytimes.com/2017/07/18/nyregion/dog-rescues-a-drowning-deer-and-becomes-a-social-media-hero.html" target="_blank" id="tribute-link">sarah maslin nir's article for the new york times</a>.</p>
</div>
</div>
              
            
!

CSS

              
                .bg-1 {background-color: #3dc9b3;}
.bg-2 {background-color: #f25454;}
.bg-3 {background-color: #f6a801;}

.container-fluid {
  padding: 40px;
}
ul.container {
  max-width: 50%;
}

ul.container li {
  list-style-type: circle;
  padding-bottom: 5px;
}

h2 {
  color: white;
  font-family: 'Shrikhand';
}

#section1 blockquote {
  text-align: justify;
  border-left: 4px solid white;
  padding-left: 10px;
  font-style: italic;
}

#section1 img {
  max-width: 60%;
  border-radius: 100%;
  max-height: 60%;
  margin: auto;
}

p#img-caption {
  font-size: 14px;
  max-width: 60%;
  margin: auto;
}

#section3 a {
  color: #E1E1E1;
}

#footer a {
  color: #333333;
}

#footer {
  padding-bottom: 0;
}
              
            
!

JS

              
                
              
            
!
999px

Console