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.


                <article class="clickable" lang="nl">
  <h2><a href="" target="_blank">Eenvoudige klikbare kaart</a></h2>
  <p>Maak een artikel of lijstitem en geef de het <code>position: relative</code>. Maak van de kop een link.</p>
  <p>Geef de link een pseudo-element <code>::after</code> (<code>::before</code> kan ook) en geef dat <code>position: absolute</code>. Stel alle zijden in op 0 zodat het de container bedekt. </p>
  <p>Nu is het hele blok klikbaar, terwijl de toegankelijke tekst alleen bestaat uit de kop. Ook staat alleen de kop in de tabvolgorde. </p>
  <p>Nadeel: de tekst is alleen te selecteren door de hele kaart te selecteren.</p>


                .clickable {
  border-radius: 0.25rem;
  border: 1px solid hsl(0 0% 0% / 0.2);

  max-width: 60ch;
  padding: 0.5rem;
  position: relative;
  transition: box-shadow 150ms ease-out;
.clickable:focus-within {
  box-shadow: 1px 1px 4px 2px hsl(0 0% 0% / 0.2);
.clickable a::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

body {
  display: grid;
  font: 1.125rem / 1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  min-height: 100vh;
  place-content: center;

a:any-link {
  text-decoration: none;
  color: inherit;