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 id="header">
  <div class="logo">
    <img src="http://erdmann-freunde.de/files/erdmann-freunde-v6/theme/images/logo.png" />
  </div>
<nav class="mod_navigation nav nav--sidebar block">
  <a href="#skipNavigation45" class="invisible">Navigation überspringen</a>
  
  <ul class="level_1" role="menubar">
    <li class="sibling first">
      <a href="#" title="" class="sibling first" role="menuitem">wer wir sind</a>
    </li>
    <li class="sibling">
      <a href="#" title="" class="sibling" role="menuitem">was wir bieten</a>
    </li>
    <li class="sibling last">
      <a href="#" title="" class="sibling last" role="menuitem">wie wir vorgehen</a>
    </li>
  </ul>
  <a id="skipNavigation45" class="invisible">&nbsp;</a>
</nav>
</header>
<div id="container">
  <div id="main">
    <img src="http://erdmann-freunde.de/files/content/css-kurs/teil-10/codepen-background-image.jpg" />
    <p>Text nach dem Bild</p>
  </div>
</div>
              
            
!

CSS

              
                body {
  padding: 0;
  margin: 0;
  font-family: sans-serif;
}

.invisible {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: #fff;
}

.nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

[id="header"] {
  position: fixed;
  height: 100%;
  width: 180px;
  background: #333;
  overflow-y: scroll; 
  /* falls Inhalt > Monitorhoehe */
}

[id="container"] {
  margin-left: 180px; 
  /* sollte min. so breit sein wie #header */
}

[id="main"] p {
    height: 400px;
  /* nur zu Demo-Zwecken */
}

.logo {
  text-align: center;
  margin: 30px 25px 50px;
}

.nav--sidebar li a {
  padding: 10px 25px;
  display: block;
  text-align: center;
  border-bottom: 1px solid #555;
}

.nav--sidebar li a:before {
  content: "©"; 
  /* deine individuellen Icons/Iconfonts */
  display: block;
  font-size: 3em;
}

.nav--sidebar li a.last {
  border-bottom: 0;
}

.nav--sidebar li a:hover,
.nav--sidebar li a:focus {
  color: #FF5636;
}
              
            
!

JS

              
                
              
            
!
999px

Console