Pen Settings

HTML

CSS

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

JavaScript

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

Behavior

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.

HTML

              
                <main class="poster">
  <div class="poster__inner">
    <section class="poster__row">
      <p class="poster__subheader">Juni-Festwochen Zürich 1959</p>
    </section>
    <header class="poster__row">
      <h1 class="poster__header">Stadttheater</h1>
    </header>
    <section class="poster__row">
      <div class="poster__date">
        <p>Schweizerische Erstaufführung</p>
        <p>
          Mittwoch, 3.Juni<br /> 20.00 Uhr
        </p>
      </div>
      <h2 class="poster__subheader">Der Sturm</h2>
      <ul class="poster__list">
        <li>Oper von Frank Martin Leitung:</li>
        <li>Christian Vöchting</li>
        <li>Hans Zimmermann</li>
        <li>Max Röthlisberger</li>
      </ul>
      <ul class="poster__list">
        <li>In den Hauptrollen:</li>
        <li>Ingeborg Friedrich</li>
        <li>Heinz Borst</li>
        <li>Jean-Pierre Genet</li>
        <li>Hermann Winkler</li>
      </ul>
    </section>
    <section class="poster__row">
      <div class="poster__date">
        <p>
          Gastspiel<br /> Städtische Oper Berlin
        </p>
        <p>
          Freitag, 5.Juni<br /> Sonntag, 7.Juni<br /> 20.00 Uhr
        </p>
      </div>
      <h2 class="poster__subheader">Cosi fan tutte</h2>
      <ul class="poster__list">
        <li>Komische Oper von W.A.Mozart Leitung:</li>
        <li>Artur Rother</li>
        <li>Carl Ebert</li>
        <li>Jean Pierre Ponnelle</li>
      </ul>
      <ul class="poster__list">
        <li>Elisabeth Grümmer</li>
        <li>Lisa Otto</li>
        <li>Sieglinde Wagner</li>
        <li>Herbert Brauer</li>
        <li>Josef Greindl</li>
        <li>Ernst Häfliger</li>
      </ul>
    </section>
    <section class="poster__row">
      <div class="poster__date">
        <p>
          Samstag 6.Juni<br /> Mittwoch, 17.Juni<br /> 20.00 Uhr
        </p>
      </div>
      <h2 class="poster__subheader">
        Lucia<br /> di Lammermoor
      </h2>
      <ul class="poster__list">
        <li>Oper von G. Donizetti Leitung:</li>
        <li>Nello Santi</li>
        <li>Ettore Celia</li>
        <li>Max Röthlisberger</li>
      </ul>
      <ul class="poster__list">
        <li>In den Hauptrollen:</li>
        <li>Amelia Benvenuti</li>
        <li>Lorenzo Sabatucci</li>
        <li>Lorenzo Gaetani</li>
        <li>Mario Zanasi</li>
      </ul>
    </section>
    <section class="poster__row">
      <div class="poster__date">
        <p>
          I. Programm<br /> 11.Juni, 20.00 Uhr<br /> 14.Juni, 20.00 Uhr
        </p>
        <p>
          II. Programm<br /> 12.Juni, 20.00 Uhr<br /> 14.Juni, 15.00 Uhr
        </p>
        <p>
          III. Programm<br /> 13.Juni, 20.00 Uhr
        </p>
      </div>
      <h2 class="poster__subheader">London’s Festival Ballet</h2>
      <ul class="poster__list">
        <li>
          I. Programm<br /> Vision de Chopin<br /> Petruschka Etudes
        </li>
        <li>
          II. Programm<br /> Concerti
          <br /> Giselle
        </li>
        <li>
          III. Programm<br /> Schwanensee II.Akt<br /> Le Pas de Quatre<br /> Variations for Four<br /> Don Quixote<br /> Polowetzer Tänze
        </li>
      </ul>
      <ul class="poster__list">
        <li>Leitung:</li>
        <li>Julian Braunsweg</li>
        <li>Anton Dolin</li>
        <li>Geoffrey Corbett</li>
        <li>mit</li>
        <li>Tamara Toumanova</li>
        <li>Natalie Krassovska</li>
        <li>Toni Lander</li>
        <li>Marilyn Burr</li>
        <li>Anton Dolin</li>
        <li>John Gilpin</li>
        <li>
          &nbsp;
          <br /> Corps de Ballet
        </li>
      </ul>
    </section>
    <section class="poster__row">
      <div class="poster__date">
        <p>
          21.Juni, 20.00 Uhr<br /> Das Rheingold
        </p>
        <p>
          23.Juni, 19.00 Uhr<br /> Die Walküre
        </p>
        <p>
          24.Juni, 18.00 Uhr<br /> Siegfried
        </p>
        <p>
          28.Juni, 18.00 Uhr<br /> Götterdämmerung
        </p>
      </div>
      <h2 class="poster__subheader">
        Der Ring<br /> des Nibelungen
      </h2>
      <ul class="poster__list">
        <li>Bühnenfestspiel von Richard Vagner<br />Leitung:</li>
        <li>Robert F. Denzler</li>
        <li>Karl Heinz Krahl</li>
        <li>Philipp Blessing</li>
        <li>&nbsp;<br />In den Hauptrollen:</li>
        <li>Elsa Cavelti</li>
        <li>Birgit Nilsson</li>
        <li>Astrid Varnay</li>
      </ul>
      <ul class="poster__list">
        <li>Mary Davenport</li>
        <li>Hilde Koch</li>
        <li>Bernd Aldenhoff</li>
        <li>Kurt Böhme</li>
        <li>Tomislav Neralic</li>
        <li>Alois Pernerstorfer</li>
        <li>Heinz BorstErwin Deblitz</li>
        <li>Hans-Bert Dick</li>
        <li>Charles Gillig</li>
        <li>Franz Lechleitner</li>
      </ul>
    </section>
  </div>
</main>
              
            
!

CSS

              
                @import url("https://rsms.me/inter/inter.css");

*,
*:before,
*:after {
  box-sizing: border-box;
}
html {
  --poster-size: 95vmin;
  --ratio: 1 / 1.41; // A3
  --color--background: hsl(358, 72%, 43%);
  --color--neutral: hsl(340, 43%, 1%);
  --color--contrast: hsl(46, 86%, 94%);
  font-family: "Inter var", sans-serif;
  font-size: calc(var(--poster-size) / 100);
}
body {
  display: grid;
  min-height: 100vh;
  background: hsl(0, 0%, 1%);
  place-items: center;
}
p {
  line-height: 1.2;
  &:not(:last-child) {
    margin-bottom: 1rem;
  }
}
.poster {
  display: grid;
  width: calc(var(--poster-size) * var(--ratio));
  height: var(--poster-size);
  color: var(--color--neutral);
  background-color: var(--color--background);

  &__inner {
    padding-left: 5rem;
    padding-top: 3rem;
    padding-right: 3rem;
    max-width: 100%;
  }
  &__row {
    $border: 0.2rem solid var(--color--neutral);
    display: grid;
    grid-template-columns: 1fr 1.7fr 1fr 1fr;
    grid-column-gap: 1rem;
    border-top: $border;
    padding: 1.5rem 0;
    align-items: end;
    &:last-child {
      border-bottom: $border;
    }
  }
  &__header {
    color: var(--color--contrast);
    font-size: 10rem;
    margin: 2rem 0 0;
    font-weight: 550;
  }
  &__subheader {
    grid-column: 2;
    font-weight: 500;
    font-size: 3rem;
  }
}

              
            
!

JS

              
                // 💫 http://i.ncredibly.online
              
            
!
999px

Console