Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


Save Automatically?

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.


                <main class="poster">
  <div class="poster__inner">
    <p class="poster__location">tonhalle, grosser saal 9.volkskonzert der tonhalle- gesellschaft zürich,  zweites konzert im zyklus musica viva
    <h1 class="poster__header">musica viva</h1>
    <p class="poster__date">freitag, den 6. januar 1961,<br />
        20.15 uhr</p>
    <span class="poster__highlight poster__highlight--red">winfried</span>
    <span class="poster__highlight poster__highlight--right poster__highlight--red">zillig</span>
    <p class="poster__name">winfried zillig</p>
    <p class="poster__performance">konzert für orchester</p>
    <span class="poster__highlight poster__highlight--right poster__highlight--blue">armin schibler</span>
    <p class="poster__ensemble">
        <span>leitung <br />
            hans rosbaud</span>
        <span>solisten<br />
            adolf neumeier, schlagzeug<br />
            karl engel, klavier</span>
    <p class="poster__name">armin schibler</p>
    <p class="poster__performance">konzert für schlagzeug und orchester, op. 63, scenes fantastique, uraufführung</p>
    <span class="poster__highlight poster__highlight--purple">walther</span>
    <span class="poster__highlight poster__highlight--right poster__highlight--purple">geiser</span>
    <p class="poster__name">walther geiser</p>
    <p class="poster__performance">konzert für klavier und orchester, op. 53 uraufführung</p>
    <span class="poster__highlight poster__highlight--green">roberto</span>
    <span class="poster__highlight poster__highlight--right poster__highlight--green">gerhard</span>
    <p class="poster__name">roberto gerhard</p>
    <p class="poster__performance">&#171;tropos&#187;, uraufführung</p>
    <footer class="poster__footer">
        <p>karten zu fr.1-3</p>
        <p>vorverkauf<br />
            tonhalle-kasse, hug, jecklin,<br />
            kuoni, kreditanstalt<br />
            dep.kasse oerlikon


                @import url("");

*:after {
  box-sizing: border-box;
html {
  --poster-size: 95vmin;
  --ratio: 1 / 1.41; // A3
  --inner-ratio: 1 / 1.18;
  font-family: "Inter", sans-serif;
  font-size: calc(var(--poster-size) / 100);
body {
  display: grid;
  min-height: 100vh;
  background: hsl(0, 0%, 1%);
  place-items: center;
.poster {
  --color--background: hsl(53, 10%, 69%);
  --color--neutral: hsl(0, 50%, 1%);
  --color--red: hsl(355, 78%, 44%);
  --color--blue: hsl(259, 48%, 28%);
  --color--purple: hsl(281, 82%, 19%);
  --color--green: hsl(152, 29%, 31%);

  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  display: grid;
  overflow: hidden;
  width: calc(var(--poster-size) * var(--ratio));
  height: var(--poster-size);
  color: var(--color--neutral);
  background-color: var(--color--background);
  @mixin header {
    font-size: 5.9rem;
    font-weight: 700;
    margin: 1rem 0;
    letter-spacing: -0.3rem;
  &__inner {
    display: grid;
    width: calc(var(--poster-size) * var(--inner-ratio));
    transform: translateX(7rem) translateY(13rem) rotate(-45deg);
    grid-template-columns: 0.5fr 1.2fr 1fr 1.3fr 2.2fr;
    grid-column-gap: 2rem;
    align-content: start;
  &__location {
    grid-column: 4;
  &__header {
    grid-column: 4 / -1;
    @include header;
  &__date {
    grid-column: 4;
  &__highlight {
    $colors: "red", "blue", "purple", "green";
    grid-column: 2 / span 2;
    @include header;
    @each $color in $colors {
      &--#{$color} {
        color: var(--color--#{$color});
    &--right {
      grid-column: 4 / -1;
  &__name {
    text-align: right;
    grid-column: 3;
  &__performance {
    grid-column: 4;
  &__ensemble {
    display: grid;
    grid-column: span 2;
    grid-auto-flow: column;
  &__footer {
    display: grid;
    margin-top: 3rem;
    align-items: end;
    grid-column: 2 / -1;
    grid-template-columns: 1fr 1.4fr;



                // No