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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <!-- First Component / Premier Composant -->
<header class="cmpt-my-header">
  <div class="cmpt-my-header--ui">
    <h1 class="cmpt-my-header--title">I am Title</h1>
  </div>
</header>

<!-- Second Component / Deuxième Composant -->
<nav class="cmpt-my-menu">
  <div class="cmpt-my-menu--ui">
    <div class="cmpt-my-menu--links">
      <ul>
        <li><a href=""><span>Home</span></a></li>
        
        <li><a href=""><span>Magazine</span></a></li>
        
        <li><a href=""><span>Profile</span></a></li>
        
        <li><a href=""><span>Settings</span></a></li>
        
        <li><a href=""><span>About</span></a></li>
      </ul>  
  </div>
</nav>

<!-- Third Component / Troisième Composant -->
<div class="cmpt-my-content">
  <div class="cmpt-my-content--ui">
    <div class="cmpt-my-content--text">
      <p><a href="http://blog.lesieur.name/conventions-html-et-css-orientes-composants/">Conventions HTML et CSS orientés composants</a>. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab nesciunt nemo amet culpa veniam molestias provident laudantium officia, aut ipsa quae doloremque, tempore, non ipsam quis nihil itaque deleniti pariatur.</p>
      
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab nesciunt nemo amet culpa veniam molestias provident laudantium officia, aut ipsa quae doloremque, tempore, non ipsam quis nihil itaque deleniti pariatur.</p>
      
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab nesciunt nemo amet culpa veniam molestias provident laudantium officia, aut ipsa quae doloremque, tempore, non ipsam quis nihil itaque deleniti pariatur.</p>
      
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab nesciunt nemo amet culpa veniam molestias provident laudantium officia, aut ipsa quae doloremque, tempore, non ipsam quis nihil itaque deleniti pariatur.</p>
      
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab nesciunt nemo amet culpa veniam molestias provident laudantium officia, aut ipsa quae doloremque, tempore, non ipsam quis nihil itaque deleniti pariatur.</p>
      
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab nesciunt nemo amet culpa veniam molestias provident laudantium officia, aut ipsa quae doloremque, tempore, non ipsam quis nihil itaque deleniti pariatur.</p>
      
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab nesciunt nemo amet culpa veniam molestias provident laudantium officia, aut ipsa quae doloremque, tempore, non ipsam quis nihil itaque deleniti pariatur.</p>
    </div>
    <aside class="cmpt-my-content--ads">
      <ul>
        <li><a href="http://blog.lesieur.name/conventions-html-et-css-orientes-composants/">Conventions HTML et CSS orientés composants</a></li>
        
        <li><a href="http://blog.lesieur.name/conventions-html-et-css-orientes-composants/">Conventions HTML et CSS orientés composants</a></li>
        
        <li><a href="http://blog.lesieur.name/conventions-html-et-css-orientes-composants/">Vestibulum auctor dapibus neque.</a></li>
        
        <li><a href="http://blog.lesieur.name/conventions-html-et-css-orientes-composants/">Aliquam tincidunt mauris eu risus.</a></li>
        
        <li><a href="http://blog.lesieur.name/conventions-html-et-css-orientes-composants/">Vestibulum auctor dapibus neque.</a></li>
        
        <li><a href="http://blog.lesieur.name/conventions-html-et-css-orientes-composants/">Conventions HTML et CSS orientés composants</a></li>
        
        <li><a href="http://blog.lesieur.name/conventions-html-et-css-orientes-composants/">Aliquam tincidunt mauris eu risus.</a></li>
        
        <li><a href="http://blog.lesieur.name/conventions-html-et-css-orientes-composants/">Vestibulum auctor dapibus neque.</a></li>
        
        <li><a href="http://blog.lesieur.name/conventions-html-et-css-orientes-composants/">Vestibulum auctor dapibus neque.</a></li>
        
        <li><a href="http://blog.lesieur.name/conventions-html-et-css-orientes-composants/">Conventions HTML et CSS orientés composants</a></li>
        
        <li><a href="http://blog.lesieur.name/conventions-html-et-css-orientes-composants/">Vestibulum auctor dapibus neque.</a></li>
      </ul>  
    </aside>
  </div>
</div>
  
<!-- Fourth Component / Quatrième Composant -->
<footer class="cmpt-my-footer">
  <div class="cmpt-my-footer--ui">
    <div class="cmpt-my-footer--copyright">©All right not reserved at all</h1>
  </div>
</footer>
              
            
!

CSS

              
                /* All the area alternating / Toute la place en alternance */
* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  background-color: #eee;
}

[class^=cmpt-][class$=--ui] {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 15px;
}

.cmpt-my-header {
  background-color: #ccc;
}

.cmpt-my-menu {
  background-color: #bbb;
  
  ul {
    margin: 0;
    padding: 0;
  }

  li {
    display: inline-block;
  
    & + li {
      &:before {
        content: '|';
        margin-right: 8px;
        margin-left: 8px;
      }
    }
  }
}

.cmpt-my-content {
  background-color: #ddd;
}

.cmpt-my-footer {
  background-color: #bbb;
}
              
            
!

JS

              
                
              
            
!
999px

Console