css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

              <main class="grid">
	<div class="red c2r1"></div>
	<div class="black c2r1"></div>
	<div class="black c3r2"></div>
	<div class="red triangle c4r2"></div>
	<div class="black c1234r3"></div>
	<div class="red triangle c1r4"></div>
	<div class="black c2r4"></div>
	<div class="red c3r4"></div>
	<div class="black triangle c4r4"></div>
	<div class="red c1r5"></div>
	<div class="black c1r5"></div>
	<div class="black c3r5"></div>
	<div class="black c4r5">
		<p>If you dig a hole and it's in the wrong place, digging it deeper isn't going to help.</p>
		<h1>Seymour Chwast</h1>
	<div class="black c3r6"></div>
	<div class="red triangle c4r6"></div>
              /* ORIGINAL POSTER BY TOM DAVIE */
/* http://studiotwentysix2.com/poster/grid.html */

$red: #b41020
$black: #270d0e
$yellow: #dca41b

	height: 100vh
	width: 100vw
	display: flex
	justify-content: center
	align-items: center
	background: $black
	font-size: 7px
	line-height: 1.5
	color: $yellow

body *
	margin: 0
	padding: 0

	display: grid
	height: 595px
	width: 420px
	background: $yellow
	grid-template-columns: repeat(4,25%)
	grid-template-rows: 6% 18% repeat(4, 19%)
	border: 10px solid white
	@media screen and (max-width: 768px)
		height: calc(595px / 1.15)
		width: calc(420px / 1.15)

	clip-path: polygon(0 0, 0% 100%, 100% 100%)

	background: $red

	background: $black

	grid-row: 1/3

	grid-row: 2
	border: 5px solid $yellow
	border-right: 0

	grid-row: 2
	border: 5px solid $yellow
	border-right: 0

	grid-column: span 4
	grid-row: 3

	grid-row: 4

	grid-row: 4
	background: repeating-linear-gradient(90deg, $black 4px, $black 8px, transparent 8px, transparent 12px)
	background-position: center

	grid-row: 4
	margin: auto
	height: 85%
	width: 90%
	border-radius: 50%

	grid-row: 4
	transform: scale(1, -1)
	border-left: 5px solid $yellow

	grid-row: 5/7

	grid-row: 5

	grid-row: 5
	display: flex
	flex-direction: column
	justify-content: flex-end
	border-left: 5px solid $yellow
	padding: 0 7px

		color: $red
		font-size: 1.1em
		margin: 1em 0

	grid-row: 6
	border: 5px solid $yellow
	border-right: 0

	grid-row: 6
	transform: scale(1, -1)
	border: 5px solid $yellow
🕑 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.
Loading ..................