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.


<div class="wrapper">
	<h1>Top 10 albums of 2021</h1>
	<cite>Source: <a href="">The Guardian</a></cite>
	<ol reversed start="10">
			<span>Mdou Moctar</span>
			<span>Afrique Victime</span>
			<img src="" alt="Arlo Parks album cover" />
			<span>Arlo Parks</span>
			<span>Collapsed in Sunbeams</span>
			<span>Olivia Rodrigo</span>
			<span>Dry Cleaning</span>
			<span>New Long Leg</span>
			<span>Tyler, the Creator</span>
			<span>Call Me If You Get Lost</span>
			<img src="" alt="the weather station album cover" />
			<span>The Weather Station</span>
			<span>Little Simz</span>
			<span>Sometimes I Might Be Introvert</span>
			<img src="" / alt="Wolf Alic album cover">
			<span>Wolf Alice</span>
			<span>Blue Weekend</span>
			<img src="" alt="Self Esteem album cover"/>
			<span>Self Esteem</span>
			<span>Prioritise Pleasure</span>


                * {
	box-sizing: border-box;

img {
	width: 100%;
	display: block;

body {
	margin: 0;
	padding: clamp(1rem, 2vw, 3rem);
	font-family: "Open Sans", sans-serif;

a {
	color: inherit;

.wrapper {
	max-width: 80rem;
	margin: 0 auto;

ol {
	list-style: none;
	padding: 1.5rem;
	border: 0.1rem solid lightgrey;
	columns: 20rem;
	column-gap: 4rem;
	column-rule: 0.2rem dotted turquoise;
	border-radius: 0.5rem;

li {
	--y: calc(100% - 2rem);
	display: grid;
	grid-template-columns: minmax(3.75em, auto) 1fr;
	gap: 0 0.5em;
	break-inside: avoid;
  page-break-inside: avoid;
	background: radial-gradient(circle at 30% var(--y), rgb(50 50 50), rgb(0 0 0));
	color: white;
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0.25rem 0.25rem 0.5rem rgb(0 0 0 / 0.17)

li + li {
	margin-top: 1rem;

li img {
	grid-column: 1 / 3;
	grid-row: 1;
	aspect-ratio: 1.8;
	object-fit: cover;

li::before {
	counter-increment: list-item -1;
	content: counter(list-item);
	font-weight: 700;
	font-size: 4.5em;
	letter-spacing: -0.125em;
	line-height: 1;
	color: turquoise;
	grid-column: 1;
	grid-row: span 2;
	align-self: end;
	margin: 0 0 -0.15em -0.15em;

li span {
	grid-column: 2;

li span:first-of-type {
	font-size: 1.5em;
	padding-top: 1rem;

li span:last-of-type {
	font-style: italic;
	padding-bottom: 1rem;