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.


    <li><a href="">Link 1</a></li>
    <li><a href="">Link 2</a></li>
    <li><a href="">Link 3</a></li>
    <h2>Article Headline Level 2</h2>
    <p>Lorem ipsum dolor sit amet consectetur <a href="">adipisicing elit</a>. Ullam voluptate doloremque officia quidem molestias maiores numquam assumenda perspiciatis similique odio eligendi aliquid, sapiente voluptatibus nesciunt quasi adipisci minima blanditiis odit!</p>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Reiciendis, praesentium? Reiciendis, animi quaerat quas quam accusantium nesciunt <a href="">ipsa consectetur modi harum</a> voluptate! Eius architecto maiores aspernatur repellendus. Necessitatibus, vitae harum!</p>
    <img src='' alt=''>
    <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Corrupti soluta praesentium quo consequatur <a href="">temporibus tenetur nemo</a>, nulla excepturi distinctio, omnis adipisci rem aperiam sit dolorem maxime deleniti voluptatibus, officia voluptatem?</p>
    <h3>Article Headline Level 3</h3>
    <img src='' alt=''>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio quisquam illum totam delectus perspiciatis labore, dignissimos autem tempore vitae officiis mollitia cupiditate hic. Exercitationem eius ipsam similique dicta, consequatur nam.</p>
  <p><a href="">Acme Corp</a></p>


                nav a {
  color: inherit;
  text-decoration: none;

The `*` references the base `a` selector 
a:not(nav *) {
  color: blue;

/* Chain `:not()` and `:is()` for succinct, powerful selectors */
img:not(:is(h2, h3) + *) {
  margin-top: 8vh;
  margin-bottom: 8vh;
  transform: scale(1.1);

footer p {
  width: min(60ch, 100vw - 2rem);
  margin-left: auto;
  margin-right: auto;

main {
  margin-top: 5vh;
  margin-bottom: 5vh;

nav {
  background-color: lavender;
  padding: 1rem;

nav ul {
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  grid-gap: 2rem;
  list-style: none;
  margin: 0;

footer {
  background-color: whitesmoke;
  padding: 8px 0;

p {
  line-height: 1.5;

img {
  width: 100%;
  display: block;