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

              
                <!-- Read the full post at https://jen4web.substack.com/p/multi-vert -->
 
<h1>Challenge for Multi-level Vertical Navbars</h1>

<h2>INSTRUCTIONS:</h2>
<ol>
  <li>Fork this CodePen</li>
  <li>Use nested unordered lists to mark up the following navbar in HTML</li>
  <li>Make your own links to the animals, or simply use a placeholder link (href="#")</li>
  <li>Then style your navbar so it clearly shows a difference between the main and sub navigation levels</li>
</ol>
<p>Try some other type of formatting for your navigation beyond what was covered in today's entry! Change colors, spacing, fonts and font styles, font weights, hover states, and so many other things to try...</p>

<p><a href="https://jen4web.substack.com/p/multi-vert-discussion" target="_blank" class="button">Share your answer on Substack</a></p>

<hr><!-- Mess with anything below this line or in the CSS column! -->

<h1>Phyllum Mollusca</h1>

Cephalopods
  Octopus
  Squid
  Cuttlefish
Gastropods
  Snails
  Slugs
Bivalvia
  Clams
  Oysters
  Mussels
  Scallops
              
            
!

CSS

              
                













/* default styling for the page / instructions - you don't need to touch this unless you really want to */
body {
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
  padding-bottom: 5.0em;
}
h1, h2, h3, h4, h5, h6 {
  margin: 1.5em 0 1.0em;
}
ol li, ul li {
  padding-bottom: 0.5em;
}
p {
  line-height: 1.3em;
  margin-top: 0;
}
.button {
  background-color: #eb3b5a;
  padding: 0.5rem 1rem;
  border: 1px solid #eb3b5a;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin: 1em 0 5rem;
}
.button:hover {
  color: #eb3b5a;
  background-color: white;
}
              
            
!

JS

              
                /* 

💯 This challenge is certified 90% free of JavaScript. 

ALL THE GOOD STUFF IS IN THE HTML AND CSS BLOCKS :-D

*/
              
            
!
999px

Console