Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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="wrapper">
  <header>
  <h1>Salamanders</h1>
    <nav>
      <a class="active" href="#home">home</a>
      <a href="#aboutus">about us</a>
      <a href="#contact">contact</a>
    </nav>
</header>
<article>
<p class="first">Salamanders are a group of amphibians with a lizard-like appearance, including short legs and a tail in both larval and adult forms.</p>

<p>Several species of salamander inhabit the temperate rainforest of the Pacific Northwest, including the Ensatina, the Northwestern Salamander and the Rough-skinned Newt. Most salamanders are nocturnal, and hunt for insects, worms and other small creatures.  consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC.</p>


<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.</p>
</article>

<aside>
  <h3>Did you know...</h3>
    <p>The Rough-skinned Newt defends itself with a deadly neurotoxin.  This is not the type of toxin you want to have a run-in with.  Try not to agitate.</p>
</aside>

</div>
              
            
!

CSS

              
                /*These are four very popular pseudo classes.... 
a:link (is a normal unvisited link)
a:visited (a link a user has visited)
a:hover (a link when the user hovers over)
a:active (active link the moment it is clicked) 
In order for everything to work, they have to be in this order in CSS!*/





























nav {
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  justify-content:center;
  background-image: linear-gradient(green, transparent);
}

nav a {
  display:block;
  padding:10px 16px;
  color:black;
  text-transform:uppercase;
  text-decoration:none;
/*   background-color:white; */
  margin:5px;
  font-family: verdana, sans-serif;
}
p {font-size:1.2em;}
.wrapper {margin:6em;}
              
            
!

JS

              
                
              
            
!
999px

Console