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

              
                <div class="container">
  <ul class="inline-list">
      <li><a href="/en">English</a></li>
      <li><a href="/fr">Français</a></li>
      <li><a href="/da">Dansk</a></li>
      <li><a href="/it">Italiano</a></li>
      <li><a href="/jp">日本語</a></li>
  </ul>
</div>

<p>Resize the block above to see this in action!</p>

<p>PS: Wear a mask when you go outside.</p>
              
            
!

CSS

              
                /*
    1: Not essential but good to do to if your list lives alongside other content
    2: If you don't have a reset in place, this will remove the user-agent stylesheet default padding
    3: This is required to ensure all items flow next to each other
    4: The whitespace required for this trick to work — no other character should be used
    5: Setting a larger letter-spacing effectively provides a wider whitespace
    6: Apply a background image to fake any kind of bullet or pipe character, or any other separator you can think of
*/

.inline-list {
    display: inline-block; /* 1 */
    padding: 0; /* 2 */
    line-height:2em;
}

.inline-list > li {
    display: inline; /* 3 */
}

.inline-list > li::after {
    content: " "; /* 4 */
    letter-spacing: 1em; /* 5 */
    background: linear-gradient(90deg, transparent calc(50% - 0.03125em), currentColor 0, currentColor calc(50% + 0.03125em), transparent 0); /* 6 */
}

/* Presentation styles */
html {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

body {
  color: #efefef;
  background: #0c0c0c;
}

a {
  color: hotpink;
}

.container {
  width: 12rem;
  margin: 0 auto;
  
  resize: horizontal;
  overflow: auto;
}

p {
  text-align: center;
}
              
            
!

JS

              
                
              
            
!
999px

Console