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

              
                <header id="header">
  <div class="inside">
    <div class="logo">
      <a href="./">
        <img src="https://erdmann-freunde.de/theme/img/logo-dark.svg" width="100" alt="" />
      </a>
  </div>
    <nav class="mod_navigation nav nav--main  block">
      <a href="#skipNavigation223" class="invisible">Navigation überspringen</a>

<ul class="level_1">
            <li class="sibling first"><a href="leistungen" title="Contao Design, Umsetzung &amp; Entwicklung für Agenturen" class="sibling first" itemprop="url"><span itemprop="name">Leistungen</span></a></li>
                <li class="sibling"><a href="contao-themes" title="Contao Themes &amp; Website Templates für Agenturen und Webdesigner" class="sibling" itemprop="url"><span itemprop="name">Themes</span></a></li>
                <li class="ressourcen sibling"><a href="wissen" title="E-Books, Tutorials und Infos für deine Contao-Projekte" class="ressourcen sibling" itemprop="url"><span itemprop="name">Wissen</span></a></li>
                <li class="sibling"><a href="logbuch-uebersicht" title="Das Erdmann &amp; Freunde Logbuch" class="sibling" itemprop="url"><span itemprop="name">Logbuch</span></a></li>
                <li class="wer sibling"><a href="ueber-uns" title="Wir sind Erdmann &amp; Freunde" class="wer sibling" itemprop="url"><span itemprop="name">Über uns</span></a></li>
                <li class="menu-club sibling last"><a href="club" title="Club" class="menu-club sibling last" itemprop="url"><span itemprop="name">Club</span></a></li>
      </ul>

  <span id="skipNavigation223" class="invisible"></span>

</nav>
</header>
              
            
!

CSS

              
                .nav ul{list-style-type: none; padding: 0;margin: 0;}
.nav a{display: block;padding: 0.25rem; text-decoration: none; color: inherit;}
.invisible{width: 0; height: 0; left: -1000px; top: -1000px; position: absolute; overflow: hidden; display: inline}


[id='header'] {
  > .inside {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

// magic starts here
.nav--main {
  display: contents;
  
  .level_1 {
    display: contents;
  }
  
  // give only the first 3 li an order to move them before the logo
  li:nth-child(-n+3) {
    order: -1;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console