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

              
                <div class="fluid-container green-background">
  <div id="mySidenav" class="sidenav">
    <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
    <a href="#">About</a>
    <a href="#">Services</a>
    <a href="#">Clients</a>
    <a href="#">Contact</a>   </div>
  <head><link href="https://fonts.googleapis.com/css?family=Pacifico" rel="stylesheet"><link href="https://fonts.googleapis.com/css?family=Lato:400i" rel="stylesheet"></head>
  <h1 class="text-center wide-text" style="padding: 20px"><span onclick="openNav()">Amelia Earhart</span></h1>
  <div>
    <img class="img-responsive center" src="http://cdn-image.travelandleisure.com/sites/default/files/styles/1600x1000/public/earhart0615-new-footage.jpg?itok=TX7J5Ri6" alt="Amelia Earhart atop a grounded plane surrounded by cheering men">
    <p class="block-text white-text">Amelia Mary Earhart was an American aviation pioneer and author. Earhart was the first female aviator to fly solo across the Atlantic Ocean. She received the U.S. Distinguished Flying Cross for this accomplishment. She set many other records, wrote best-selling books about her flying experiences and was instrumental in the formation of The Ninety-Nines, an organization for female pilots. In 1935, Earhart became a visiting faculty member at Purdue University as an advisor to aeronautical engineering and a career counselor to women students. She was also a member of the National Woman's Party and an early supporter of the Equal Rights Amendment.
During an attempt to make a circumnavigational flight of the globe in 1937 in a Purdue-funded Lockheed Model 10 Electra, Earhart disappeared over the central Pacific Ocean near Howland Island. Fascination with her life, career and disappearance continues to this day. For more information on Amelia Earhart and her amazing accomplishment, click 
      <a href="http://www.ameliaearhart.com/about/bio.html">here</a>.</p>
  </div>
</div>
              
            
!

CSS

              
                .sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    padding-top: 60px;
    transition: 0.5s;
}
.wide-text {
  margin: auto;
  font-size: 50px;
  letter-spacing: 0.25em;
}
.white-text {
  color: white;
}
.well {  
  height: 150px;
  width: 50%;
}
.center {
  margin: auto;
  display: block;
  border-style: solid;
  border-color: #4F8E83;
  border-width: 10px;
  width: 55%;
  height: 500px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom: 0px;
}
.block-text {
  font-family: 'lato', sans-serif;
  font-weight: lighter;
  font-size: 15px;
  display: block;
  padding: 15px;
  width: 55%;
  margin: auto;
  background-color: #4F8E83;
  border-style: solid;
  border-width: 10px;
  border-color: #4F8E83;
  border-top: 0px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.green-background {
  background-color: #DAF4F0;
}
a {
  color: #000000;
}
a:hover {
  color: #ffffff;
  text-decoration: underline;
}
h1 {
  font-family: 'Pacifico', cursive;
    
}
              
            
!

JS

              
                $(document).ready(function() {
  
});
              
            
!
999px

Console