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=Gochi+Hand" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Dosis" rel="stylesheet">

<div class="container">
  <h1 id="totoro">Totoro</h1>
  <img src="https://res.cloudinary.com/drwqdcmyx/image/upload/v1471297513/totoro_kvf4gf.gif" class="img-responsive centered" />

  <div class="middle-text">
    <h2>"My Neighbor Totoro is a 1988 Japanese animated fantasy film written and directed by Hayao Miyazaki and produced by Studio Ghibli. The film – which stars the voice actors Noriko Hidaka, Chika Sakamoto, and Hitoshi Takagi – tells the story of the two young daughters (Satsuki and Mei) of a professor and their interactions with friendly wood spirits in postwar rural Japan. The film won the Animage Anime Grand Prix prize and the Mainichi Film Award and Kinema Junpo Award for Best Film in 1988. It also received the Special Award at the Blue Ribbon Awards in the same year."</h2>
    <h4>- Quoted from <a href="https://en.wikipedia.org/wiki/My_Neighbor_Totoro" target="_blank" id="wiki">My Neighbor Totoro</a> Wiki Page -<h4>
  </div> 

  <img src="https://67.media.tumblr.com/9c231ccdbdcf13fa346ae949280b6728/tumblr_njtvq9XlqJ1trzm55o1_500.gif" id="t-img" class="img-responsive centered"/>

  <div class="centered">
    <a href="https://en.wikipedia.org/wiki/Studio_Ghibli" target="_blank" class="btn btn-info" id="ghibli">Studio Ghibli</a>
    <a href="http://www.imdb.com/title/tt0096283/" target="_blank" class="btn btn-info" id="imdb">Totoro IMdb</a>
  </div>
</div>
              
            
!

CSS

              
                body {
  text-align: center;
  font-family: 'Dosis', sans-serif;
  color: #333333;
  background-image: url("https://john77leblanc.files.wordpress.com/2015/02/background.jpg");
  background-repeat: no-repeat;
  background-position: center;
}

a:link {
  color: #333333;
  font-size: 2em;
}

#totoro {
  font-family: Gochi Hand;
  font-size: 6em;
}

.container {
  width: 50%;
}

@media screen and (max-width:720px) {
  .container {
    width: 80%;
  }
}

.centered {
  left: 0;
  right: 0;
  margin: 0 auto;
}

.middle-text {
  padding-top: 10px;
  padding-bottom: 30px;
  text-align: justify;
}

#wiki:link {
  font-size: 1em;
}

#t-img {
  border: solid 1px;
  border-radius: 30px;
  opacity: 0.9;
}

#ghibli,
#imdb {
  width: 200px;
  height: 50px;
  margin: 30px 20px 0px 20px;
}
              
            
!

JS

              
                
              
            
!
999px

Console