cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <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>
	<div class="black c3r6"></div>
	<div class="red triangle c4r6"></div>
	
</main>
            
          
!
            
              /* ORIGINAL POSTER BY TOM DAVIE */
/* http://studiotwentysix2.com/poster/grid.html */

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

body
	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

.grid
	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)

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

.red
	background: $red

.black
	background: $black

.c2r1
	grid-row: 1/3

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

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

.c1234r3
	grid-column: span 4
	grid-row: 3

.c1r4
	grid-row: 4

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

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

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

.c1r5
	grid-row: 5/7

.c3r5
	grid-row: 5

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

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

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

.c4r6
	grid-row: 6
	transform: scale(1, -1)
	border: 5px solid $yellow
            
          
!
999px
Loading ..................

Console