Pen Settings



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


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


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.


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.


                <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="/ja">日本語</a></li>

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

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


    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, as this trick is making whitespace characters collapse when wrapping to a new line
    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;
    text-align: center;

.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;