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.


                <body class="wrapper flow">
    <a class="logo" href="#">
      <svg viewBox="0 0 100 100" width="1em" height="1em" xmlns="">
        <circle cx="50" cy="50" r="50" />
      <span> Marzipan </span>
    <nav class="cluster" aria-label="Main">
      <ul class="cluster" role="list">
          <a href="#">Cake</a>
          <a href="#">Ice cream</a>
          <a href="#">Candy</a>

  <main class="flow">
    <h1>Cupcake cake candy chupa chups tart marzipan chocolate bar</h1>
      <p>Halvah shortbread topping muffin cookie gingerbread bear claw. Cheesecake oat cake caramels powder powder cookie jelly-o. Bonbon bonbon chupa chups chupa chups croissant. Dessert marshmallow sesame snaps liquorice jelly beans powder marshmallow cookie. Candy shortbread wafer chocolate bar chocolate tiramisu sesame snaps..</p>
      <p>Shortbread sesame snaps dragée brownie pastry bear claw soufflé. Tootsie roll cake sugar plum candy jelly beans biscuit. Macaroon chupa chups bonbon cookie macaroon. Croissant croissant jelly ice cream jelly-o tootsie roll shortbread chocolate bar. </p>

    <p class="copyright">
      © 2024
    <nav aria-label="Complementary">
      <ul class="cluster" role="list">
          <a href="#">Imprint</a>
          <a href="#">Privacy</a>



                body {
  display: grid;
    [full-start] min-content
    [logo-text-start] min-content
    [logo-text-end] 1fr 
    [header] auto
    [main] 1fr
    [footer] auto;

body > * {
  grid-column: full;
  display: grid;
  grid-template-columns: subgrid;

/* reset styles: */

*::after {
  box-sizing: border-box;

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;

figure {
  margin-block-end: 0;

ul[role="list"] {
  list-style: none;
  padding: 0;

body {
  min-height: 100vh;
  line-height: 1.5;

a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;

/* base styles */

/* @link,16,1.2,1240,19,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */

:root {
  --step-0: clamp(1rem, 0.9348rem + 0.3261vw, 1.1875rem);
  --step-1: clamp(1.2rem, 1.1011rem + 0.4946vw, 1.4844rem);
  --step-4: clamp(2.0738rem, 1.7866rem + 1.4359vw, 2.8994rem);
  --space-xs: clamp(0.75rem, 0.7065rem + 0.2174vw, 0.875rem);
  --space-s-m: clamp(1rem, 0.7174rem + 1.413vw, 1.8125rem);
  --accent: hotpink;
  --bg: FloralWhite;
  --gutter: var(--space-s-m);
  --wrapper-width: 50rem;

body {
  font-size: var(--step-0);
  background-color: var(--bg);

.wrapper {
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  max-inline-size: var(--wrapper-width);

.logo {
  align-items: center;

header > nav {
  justify-content: start;
  align-self: end;

@media (min-width: 30em) {
  header > nav {
    justify-content: end;

main {place-content: start;}

footer {
  background-color: var(--accent);
  color: var(--bg);

h1 {
  font-size: var(--step-4);
  line-height: 1.1;
  text-wrap: balance;

.logo {
  font-size: var(--step-1);
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;

svg {
  block-size: 2ex;
  inline-size: auto;
  flex: none;
  fill: currentColor;

.logo > svg {
  padding-inline-end: 0.5em;

.flow > * + * {
  margin-block-start: 1em;

.cluster {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs, 1rem);