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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <div class="wrapper">
	<article class="card card--event">
		<a class="card__link" href="https://www.meetup.com/wpbristol/"></a>
		<h3>Event<time datetime="2018-03-05">March 5</time></h3>
		<a class="card__heading" href="https://www.meetup.com/wpbristol/">
			<h2>Bristol Wordpress Meetup</h2>
		<p>We meet monthly for interesting talks, expert website help and the opportunity to share knowledge with each other.</p>

	<article class="card">
		<a class="card__link" href="https://css-irl.info/becoming-a-tech-speaker/"></a>
		<h3>Article<time datetime="2018-02-23">February 23</time></h3>
		<a class="card__heading" href="https://css-irl.info/becoming-a-tech-speaker/">
			<h2>Becoming a Tech Speaker</h2>
		<p>How becoming a tech speaker has helped me develop my career and my confidence in myself as a developer, and why you should try it!</p>
	<article class="card">
		<a class="card__link" href="https://css-irl.info/to-grid-or-to-flex/"></a>
		<h3>Article<time datetime="2018-02-11">February 11</time></h3>
		<a class="card__heading" href="https://css-irl.info/to-grid-or-to-flex/">
			<h2>To Grid or to Flex?</h2>
		<p>How do you know which layout method to choose? Here are some pointers</p>
	<article class="card">
		<a class="card__link" href="https://css-irl.info/my-css-grid-wishlist/"></a>
		<h3>Article<time datetime="2018-02-03">February 3</time></h3>
		<a class="card__heading" href="https://css-irl.info/my-css-grid-wishlist/">
			<h2>My CSS Grid Wishlist</h2>
		<p>There are a few of my CSS layout needs that Grid hasn’t quite managed to fulfill just yet...</p>
	<article class="card card--event">
		<a class="card__link" href="https://www.meetup.com/Women-Who-Code-Bristol/events/255736997/"></a>
		<h3>Event<time datetime="2018-01-09">January 9</time></h3>
		<a class="card__heading" href="https://www.meetup.com/Women-Who-Code-Bristol/events/255736997/">
			<h2>Women Who Code Bristol</h2>
		<p>When it comes to crafting layouts on the web, CSS Grid is more powerful than anything we’ve had available to us before. In this talk I’ll look at how we can harness the power of Grid...</p>
              * {
	box-sizing: border-box;

a {
	text-decoration: none;
	color: black;

p {
	line-height: 1.4;

.wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;

.card {
	--hue: 259;
	--th: hsl(var(--hue), 72%, 64%);
	--thDark: hsl(var(--hue), 72%, 38%);
	--accent: hsl(var(--hueAccent, var(--hue)), 72%, 38%);
	position: relative;
	background: var(--th);
	padding: 20px 30px;
	margin: 20px;
	width: 25%;
	box-shadow: 0.2em 0.2em 20px rgba(0, 0, 0, 0.25);
	border-radius: 0.2em;

	h2 {
		padding-bottom: 0.7em;
		border-bottom: 3px solid var(--accent);
	h3 {
		color: var(--accent);
	time {
		color: black;
		font-weight: normal;
		&::before {
			content: '|';
			margin: 0 0.5em;

.card__link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	&:focus {
		background: var(--thDark);

.card--event {
	--hue: 180;
	--hueAccent: 259;

🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.