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">
            <div class="poster__design">
                <div class="poster__squares poster__squares--green">
                    <div class="square"></div>
                <div class="poster__squares poster__squares--blue">
                    <div class="square"></div>
            <section class="poster__content">
                <h1 class="poster__header">végh-quartett musica viva</h1>
                <ul class="poster__performers">
                    <li class="poster__performer">paul hindemith</li>
                    <li class="poster__performer">alban berg</li>
                    <li class="poster__performer">béla bartók</li>
                <div class="poster__details">
                    <p class="poster__detail">1. kammermusikablend der tonhalle-gesellschaft zürich, donnerstag, den 30.
                        okt. 1958, 20, 15 uhr kleiner tonhalle-salle</p>
                    <ul class="poster__schedule">
                        <li>paul hindemith</li>
                        <li>drittes streichquartett</li>
                        <li>alban berg</li>
                        <li>lyrische suite</li>
                        <li>béla bartók</li>
                        <li>viertes streichquartett</li>
                    <p class="poster__detail">karten zu fr 3.30-7.70<br />
                        vorverkauf tonhalle-kasse, hu, jecklin, kuoni<br />
                        dep. kasse oerlikon der schweiz. kreditanstalt</p>


                @import url("");

*:after {
  box-sizing: border-box;
html {
  --poster-size: 95vmin;
  --ratio: 1 / 1.41; // A3
  font-family: "Inter", sans-serif;
  font-size: calc(var(--poster-size) / 100);
  @supports (font-variation-settings: normal) {
    font-family: "Inter var", sans-serif;
body {
  display: grid;
  min-height: 100vh;
  background: hsl(0,0%, 10%);
  place-items: center;
.poster {
    --color--background: hsl(200, 70%, 52%);
  --color--neutral: hsl(200, 93%, 12%);
  --color--primary: hsl(136, 43%, 37%);
  --color--secondary: hsl(226, 45%, 38%);

  position: relative;
  display: grid;
  overflow: hidden;
  width: calc(var(--poster-size) * var(--ratio));
  height: var(--poster-size);
  padding: 4rem 2rem;
  color: var(--color--neutral);
  background-color: var(--color--background);
  align-content: space-between;
  &__inner {
    transform: rotate(45deg) translateY(35rem) translateX(-10rem);
  &__squares {
    --square-size--small: 25rem;
    --square-size--large: calc(var(--square-size--small) * 1.4);

    display: grid;
    grid-auto-flow: column;
    justify-content: start;
    grid-gap: 1rem;
    &:before, &:after {
      content: "";
    &--green {
      --square-size: var(--square-size--small);
      --square-color: var(--color--primary);
      margin-bottom: calc(var(--square-size) / 2 * -1);

    &--blue {
      --square-size: var(--square-size--large);
      --square-color: var(--color--secondary);
      margin-left: var(--square-size);
      mix-blend-mode: multiply;
    &:before, &:after, >div {
      width: var(--square-size);
      height: var(--square-size);
      background-color: var(--square-color);
  &__content {
    font-weight: 550;
    display: grid;
    justify-items: center;
    justify-content: center;
    grid-gap: 2rem;
    grid-template-areas: "header header"
    "performers details";
  &__header {
    font-size: 3.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 3rem;
    grid-area: header;
  &__performers {
    font-size: 3.5rem;
    font-weight: 600;
    display: grid;

    list-style-type: none;
    text-align: right;
    align-content: space-between;
  &__details {
    display: grid;
    max-width: 24rem;
    grid-gap: 1rem;
  &__schedule {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-column-gap: 1rem;


                // Based on on of Josef Müller-Brockmann's classic posters.