HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
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.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<section class="wrapper">
<div class="span-all">
<h1 class="title serif caps centre">Local<br> Histories</h1>
<p class="sans centre summary">15.12.2018 – 29.09.2019</p>
</div>
<div class="span-third">
<p class="serif accent">Werke aus der Friedrich Christian Flick Collection im Hamburger Bahnhof, der Sammlung der Nationalgalerie und Leihgaben</p>
<p class="serif accent">Works from the Friedrich Christian Flick Collection at Hamburger Bahnhof, the Nationalgalerie Collection and loans</p>
<p class="placeholder">placeholder</p>
</div>
<div class="span-twothirds">
<p class="placeholder"></p>
<p class="sans summary justify">„The history of art and art's condition at any time are pretty messy“ schreibt Donald Judd 1964 in einem Artikel, der sich der New Yorker Kunstszene widmet. Er wendet sich darin gegen traditionelle Unterscheidungen von Stilen und Gattungen
und plädiert für eine ungezwungene Begegnung mit Kunstwerken. Judds Analysis einer lokalen Szene ist Augangspunkt für das Experiment. Werke aus der Friedrich Christian Flick Collection und der Sammlung der Nationalgalerie, ergäzt
durch ausgewählte Leihgaben, in den Kontext ihrer Entstehung zu bringen.</p>
<p class="sans summary">Welche Kunst war prägend für Donald Judd? Was Verbindet Konrad Lueg, Sigmar Polke und Gerhard Richter? Welche Galerien haben Bruce Nauman oder Jenny Holzer in ihren frühen Karrierephasen unterstützt? Mintunter ungewöhnliche
Werk-Aufstellungen liefern Momentaufnahmen aus dem New York und Düsseldorf der 1960er- und 1970er-Jahre, dem Köln der 1980er-, dem Berlin und Los Angeles der 1990er Jahre.</p>
<p class="sans summary">Im Frühjahr 2019 erscheint eine Publikation zur Ausstellung.</p>
</div>
<div class="span-half">
<p class="fine-print justify sans">Abbildungen/Images Vorne/Front: Carl Andre, 5 x 20 Altstadt Rectangle, 1967, Installationansicht Galerie Konrad Frischer © Archive Dorothee und Konrad Fischer, Stiftung Kunstsammlung Nordrhein-Westfalen, VG Bild-Kundst, Bonn 2018/Foto: Fred Kliche/Courtesy:
Zentralarchive des internationalalen Kunsthandels ZADIK; Richard Jackson, Untitled(Wall Painting), 1988/2006 © Saatliche Museen zu Berlin, Nationalgalerie/Foto: Roman Marz/Courtesy: Friedrich Christian Flick Collection im Hamburger Bahnhof/Richard
Jackson und Hauser & Wirth; Hinten/Back: George Segal,
</div>
<div class="span-half">
<p class="fine-print justify sans">Man Installing Pepsi-Sign, 1973 © The George and Helen Segal Foundation, VG Bild-Kunst, Bonn 2018 © Staatliche Museen zu Berlin, Nationalgalerie/Foto; Andres Kilger/ Courtesy: Fredrich Christian Flick Collection im Hamburger Bahnhof; Cindy
Sherman, Untitled (#123), 1983 © Staatliche Museen zu Berlin, Nationalgalerie/Foto: Stefan Cindy Sherman, Sprü Magers und Metro Pictures.<br> Gestaltung/Graphic design NFL Team, www.nfl-team.de</p>
</div>
<div class="centre span-half">
<p class="placeholder">placeholder</p>
</div>
<div class="span-fourth serif summary">
<p>Eine Ausstellung der National galerie - Staatliche Museen Zu Berlin</p>
<p><span class="caps">Udo Kittelmann</span> Direktor/Director Eine Ausstellung der National galerie - Staatliche Museen Zu Berlin</p>
<p><span class="caps">Gabriele Knapstein</span> Leiterin/Head of Hamburger Bahnhof – Museum für Gegenwart – Berlin</p>
</div>
<div class="serif summary line-left span-fourth">
<p><span class="caps">Matilda Felix</span> Kuratorin/Curator Hamburger Bahnhof – Museum für Gegenwart – Berlin</p>
<p><span class="caps">Irina Hiebert</span><br>Grun Wissenschaftliche Mitarbeit/curatorial Assistance Hamburger Bahnhof – Museum für Gegenwart – Berlin</p>
</div>
<div class="summary span-fourth sans">
<p>Mit Arbeiten von/<br> With works from:</p>
<p>Joseph Albers<br> Carl Andre<br> Bernd und/and Hilla Becher<br> Lee Bontecou<br> George Brecht<br> John Chamberlain</p>
</div>
<div class="line-left summary span-fourth sans">
<p>Hanne Darboven<br> Dan Flavin<br> Isa Genzken<br> Jenny Holzer<br> Richard Jackson<br> Allan Kaprow<br> Manfred Kuttner<br> Barbara Kruger<br> Louise Lawler</p>
</div>
<div class="line-left span-fourth summary sans">
<p>Sol LeWitt<br> Konrad Lueg<br> Walter De Maria<br> Paul McCarthy<br> Robert Morris<br> Bruce Nauman
<br>
Claes Oldenburg<br> Sigmar Polke<br> Charlotte Posenenske<br> Jason Rhoades</p>
</div>
<div class="line-left span-fourth summary sans">
<p>Gerhard Richter<br> George Segal<br> Tony Smith<br> Robert Smithson<br> Frank Stella<br> Wolfgang Tillmans<br> Rirkrit Tiravanija<br> Rosemarie Trockel<br> Lawrence Weiner</p>
</div>
<div class="span-threefourths sans summary justify">
<p>The history of art and art's condition at any time are pretty messy", Donald Judd wrote in 1964 in an article on the New York art scene. In this piece he opposed traditional differentiations of style and genre, advocating instead a more casual encounter
with works of art. Judd's analysis of the local art scene is the starting point for an experiment that takes works from the Friedrich Christian Flick Collection and the Collectino of the Nationalgalerie – enhanced by selected loans – and
resituates them within the context of their making.</p>
<p>Which art influenced Donald Judd? What connects Konrad Lueg, Sigmar Polke and Gerhard Richter? Which galleries supported Bruce Nauman and Jenny Holzer during the early stages of their careers? Occasionally unusual work constellations provide snapshots
of New York and Düsseldorf in the 1960s and 1970s, Cologne in the 1980s, Berlin and Los Angeles in the 1990s.</p>
<p>An exhibition catalogue will be published in spring 2019.</p>
</div>
<div class="span-fourth">
<p class="placeholder">placeholder</p>
</div>
<div class="span-third">
<p class="sans">
Nationalgalerie im Hamburger Bahnhof – Museum für Gegenwart – Berlin</p>
</div>
<div class="line-left span-third">
<p class="sans">
Invalidenstraße 50-51<br/> 10557 Berlin</p>
<p class="sans">
www.smb.museum/hbf
</p>
</div>
<div class="line-left span-third">
<p class="sans fine-print">
Offnungszeiten/Opening hours<br/> Di, Mi, Fr/Tu, Wed, Fri 10-18<br/> Do/Thu 10-20<br/> Sa, So/Sat, Sun 11-19</p>
</div>
</section>
@import url('https://fonts.googleapis.com/css?family=Cardo|Work+Sans&display=swap');
:root {
--coral: #FF7A63;
--jade: #275244;
}
body {
background: var(--jade);
margin: 0;
padding: 20px;
color: var(--coral);
font-size: 14px;
line-height: 1.25;
}
.wrapper {
display: grid;
grid-template-columns: repeat(12, 1fr);
grid-gap: 1em 3em;
}
/* TYPE */
.sans {
font-family: 'Work Sans', Helvetica, Arial, sans-serif;
}
.serif {
font-family: 'Cardo', Garamond, 'Times New Roman', serif;
}
.centre {
text-align: center;
}
.title {
font-size: 10em;
line-height: 90%;
margin: 40px 0;
}
.summary {
font-size: 1.5em;
line-height: 1.35;
}
.accent {
font-size: 2.5em;
line-height: 120%;
margin: 20px 0;
}
.caps {
text-transform: uppercase;
}
.justify {
text-align: justify;
}
.fine-print {
font-size: 8px;
}
/*LINES*/
.line-btm {
border-bottom: 1px solid var(--coral);
width: 100%;
padding: 10px 0;
}
.line-left {
border-left: 1px solid var(--coral);
padding: 0 10px;
}
/* IMAGES */
.placeholder {
border: 1px solid var(--coral);
padding: 10px;
text-align: center;
min-height: 300px;
}
/* GRID */
.span-all {
grid-column: span 12;
}
.span-third {
grid-column: span 4;
}
.span-fourth {
grid-column: span 3;
}
.span-half {
grid-column: span 6;
}
.span-twothirds {
grid-column: span 8;
}
.span-threefourths {
grid-column: span 9;
}
Also see: Tab Triggers