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. 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

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

              
                <header>
  <h1>Zoomies are brokened</h1>
  <nav>
    <div class="dropdown-parent">
    <a href="#">News</a>
    </div>
    <div class="dropdown-parent">
      <a href="#">Shop</a>
      <div class="dropdown">
        <a href="#">Noms</a>
        <a href="#">Catnip</a>
      </div>
    </div>
    <button>Log in</button>
  </nav>
</header>

<main>
  <p>Ngiyaw mjau nyā νιάου miav. Mjá nyav njäu meong mi'au miyāʾūṉ miauw myām̥ō mjau miau. Miáú miau miaŭ mi'au miaŭ miaou miao mňau meogre. Mjá mjau nyav nyav mao miáú mjau niaou muning. Meow miyav mjau miau miyāʾūṉ niaou ngeung mjau. Ngeung miav miao mjau miaou miau mjau mňau muning miyav. Miao mjau mao mi'au miao ngeung.</p>
  <p>Myau myām̥ō mi'au miaŭ. Meow miáú meow myām̥ō mjau νιάου nyā nyav miaou. Muning mjá muning mjau muning myām̥ō myām̥ō mao mjau mjau. Miaŭ mjá miauw miauw. Miauw mjau miyav. Miáú miau ngiyaw mňau miaŭ. Meong miauw miauw mjau mňau. Meo nyav miav miyāʾūṉ mjau nyā mi'au myau myām̥ō mi'au. Meogre meo miyāʾūṉ ngiyaw mi'au miaou miyāʾūṉ.</p>

<p>Ya-ong miau njäu miav miau miaŭ mao meogre miaŭ. Muwaa' nyav muning miav meow mjau meo mňau mi'au. Niaou meogre myau miauw myām̥ō. Myām̥ō mňau njäu niaou miau miauw miav myām̥ō νιάου. Mao meong mjau mao miauw ngeung muwaa' ya-ong ngeung. Mao myau myau.</p>
 <p>Νιάου miaou muning. Νιάου miaŭ miav. Meo meogre mňau nyā mjau miyāʾūṉ. Mjau miauw miyāʾūṉ muning meong. Muwaa' muning mjau mi'au miyāʾūṉ mjau miáú miáú miau miav. Mňau meo miav muwaa' miyāʾūṉ. Mi'au myau nyā meong mi'au. Miav meo myām̥ō miáú.</p>
</main>

<footer>
    <a href="https://codepen.io/ijayessbe/pen/wvKOzMw">Can has fixed zoomies naow?</a>
</footer>
              
            
!

CSS

              
                body {
  font-family: 'Rubik',sans-serif;
  font-size: 18px;
  margin: 18px 36px;
}

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
}

nav {
  display: flex;
  flex-wrap: wrap;
}

nav > * {
    border-bottom: 1px solid #ddd;

}

nav a,
footer a {
  display: inline-block;
  margin: 9px;
  color: #333;
  font-weight: bold;
  text-decoration: none;
}

nav a:hover,
footer a:hover {
  text-decoration: underline;
}

.dropdown-parent {
  position: relative;
}

.dropdown {
  position: absolute;
  right: 0;
  clip-path: polygon(0 0);
  max-width: 90px;
  border: 1px solid #ddd;
  background-color: white;
  padding: 9px;
}

.dropdown-parent:focus-within .dropdown,
.dropdown-parent:hover .dropdown {
  clip-path: none;
}

button {
  font-family: 'Rubik',sans-serif;
  font-size: 1rem;
  font-weight: bold;
  background-color: white;
  border: 1px solid #999;
  border-radius: 4px;
  padding: 9px 18px;
  margin-left: 9px;
}

button:hover,
button:focus {
  background-color: #eee;
}

h1 {
  font-family: 'Chelsea Market', cursive;
  font-size: 2.5rem;
}

main {
  margin-top: 36px;
  display: grid;
  grid-gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

footer {
  margin: 36px;
  border-top: 1px solid #ddd;
  padding: 18px
}
              
            
!

JS

              
                
              
            
!
999px

Console