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>The baseline of the inline-block element depends on the the content it has inside, and the overflow property.<br>
  So, to identify the baseline of the inline-block element:
  <ul aria-label="List of things, the baseline of the inline-block depends">
    <li>It's the baseline of the last content element in the linebox in the normal flow</li>
    <li>If there's an overflow property other than visible, then the baseline is the bottom edge of the <a href="">margin-box</a> </li>
    <li>If there's no in-flow content, then the baseline is the bottom edge of the margin-box</li>
  For e.g: see how the baseline of the inline-block content changes when there's a content <span class="box">Text</span>, and when there's no content<span class="box"></span>.Also, see how the baseline goes to the margin-box bottom edge when we set <code>overflow: hidden</code><span class="box overflow">Text</span> on our inline-block element. Try changing the <code>overflow</code> to <code>visible</code> and see what happens. Also try adding some margin to the <code>inline-block</code> and see how it respects the <code>bottom-edge</code> of the <code>margin-box</code> 🤯


                body {
  font-size: 125%;
  font-family: Tahoma;
* {
  box-sizing: border-box;

.box {
  display: inline-block;
  height: 3rem;
  width: 4rem;
  background: tomato;

.overflow {
  overflow: hidden;