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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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.

HTML

              
                <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>
		</a>
		<p>We meet monthly for interesting talks, expert website help and the opportunity to share knowledge with each other.</p>
	</article>

	<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>
		</a>
		<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>
	
	<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>
		</a>
		<p>How do you know which layout method to choose? Here are some pointers</p>
	</article>
	
	<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>
		</a>
		<p>There are a few of my CSS layout needs that Grid hasn’t quite managed to fulfill just yet...</p>
	</article>
	
	<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>
		</a>
		<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>
	</article>
</div>
              
            
!

CSS

              
                * {
	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;
	
	&:hover,
	&:focus {
		background: var(--thDark);
	}
}

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




              
            
!

JS

              
                
              
            
!
999px

Console