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 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

Packages

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.

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.

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.

HTML

              
                <main>
	<ol class="content">
		<li>
			<p class="summary">This is the summary.</p>
			<!-- CSS Grid Layout browser support text -->
[[[https://codepen.io/stacy/pen/f1639a51a21481925379ac4580c6fe2e/]]]
		</li>
		<li>
			<p class="summary">This is the summary.</p>
			<p>Cow pork belly doner biltong. Exerci tation occaecat cillum, alcatra fugiat voluptate cow sunt duis sirloin tenderloin in turkey enim anim. Picanha strip steak bacon anim et officia. Eu meatball esse, cupidatat hamburger mollit picanha consequat aute sausage ham hock salami sint dolore quis. Lorem meatball doner, voluptate pork tempor turducken. Tempor eu shankle chuck t-bone meatloaf, sint in ribeye cupim.</p>
		</li>
	<li>
			<p class="summary">This is the summary.</p>
			<p>Ball tip leberkas labore eu. Duis nisi biltong ribeye ea cillum ipsum culpa in. Magna frankfurter in, jowl brisket irure laborum in occaecat ground round landjaeger drumstick reprehenderit. Flank brisket aliqua pastrami beef ribs. Short ribs cow aute, sed pork loin meatball prosciutto tenderloin non ribeye turducken fatback drumstick.</p>
		</li>
	<li>
			<p class="summary">This is the summary.</p>
			<p>Strip steak pastrami qui, porchetta ground round consectetur flank esse proident fatback exercitation kevin enim. Pastrami laborum labore doner. Esse sint chicken kielbasa in ground round alcatra shankle et beef excepteur capicola ullamco. Elit repre henderit shank pig. Adipis icing cillum porchetta ullamco do turducken pancetta, burgdoggen commodo leberkas pastrami minim. Ut occaecat frankfurter, pancetta magna landjaeger deserunt non jerky laboris in enim est dolli</p>
		</li>
	<li>
			<p class="summary">This is the summary.</p>
			<p>Eu salami et, dolore pork chop meatball shankle ham hock voluptate flank. Ut biltong voluptate, et irure turkey ham hock eu proident porchetta exercitation labore. Tenderloin in nostrud tri-tip, beef ribs magna consectetur burgdoggen reprehenderit laborum veniam prosciutto biltong pariatur pork belly. Aute ut cupidatat burgdoggen ullamco. Pariatur tenderloin in id kevin esse porchetta magna enim cow occaecat tempor.</p>
	</li>
	<li>
			<p class="summary">This is the summary.</p>
			<p>Bacon ipsum dolor amet deserunt veniam ad tri-tip, capicola bacon ribeye do esse porchetta chicken eiusmod in irure. Et elit veniam, pancetta irure aliqua ad spare ribs tri-tip pig ipsum brisket. Pork loin frankfurter eu est deserunt, brisket turkey. Beef ribs nulla bacon, hamburger short ribs capicola boudin. Drumstick id aliqua tail, qui sirloin fugiat t-bone enim frankfurter culpa dolore pastrami.</p>
	</li>
</ol>
		</main>


		
              
            
!

CSS

              
                .content {
	display: grid;
	grid-gap: 20px;	
	grid-template-columns: 1fr;
	grid-template-rows: auto;
	
	@include bp(small) {
		grid-template-columns: repeat(3, 1fr);
	}
	
	@include bp(large) {
		grid-template-columns: repeat(6, 1fr);
		grid-template-rows: repeat(3, 70px);
	}
}

	li:nth-of-type(1) {
		grid-column: 1;
		grid-row: 1;
	}

	li:nth-of-type(2) {
		@include bp(small) {
			grid-column: 2;
			grid-row: 1;
		}
		
		@include bp(large) {
			grid-row: 3;
		}
	}


	li:nth-of-type(3) {
		@include bp(small) {
			grid-column: 3;
			grid-row: 1;
		}
		
		@include bp(large) {
			grid-row: 2;
		}
	}

	li:nth-of-type(4) {
		@include bp(small) {
			grid-column: 1;
			grid-row: 2;
		}
		
		@include bp(large) {
			grid-column: 4;
			grid-row: 1;
		}
	}

	li:nth-of-type(5) {
		@include bp(small) {
			grid-column: 2;
			grid-row: 2;
		}
		
		@include bp(large) {
			grid-column: 5;
			grid-row: 3;
		}
	}
	
	li:nth-of-type(6) {
		@include bp(small) {
			grid-column: 3;
			grid-row: 2;
		}
		
		@include bp(large) {
			grid-column: 6;
			grid-row: 2;
		}
	}

// Styles for fun
// -------------------------------------------------
@import 'https://fonts.googleapis.com/css?family=Maitree|Oswald:700|Open+Sans:300';

body {
	background: #fff;
	color: #444;
	font-family: Maitree, serif;
	margin: 0 auto;
}

ol {
   counter-reset: listNumbering;
	list-style: none;
	padding: 0 1rem;
}

li {
   font-size: 1em;
	counter-increment: listNumbering;
}

li:before {
	content: counter(listNumbering, decimal);
	display: block;
	font-family: Oswald, sans-serif;
	font-size: 7rem;
	font-weight: 700;
	text-align: center;
}

.summary {
	color: orange;
	border-top: 1px solid orange;
	border-bottom: 1px solid orange;
	font-family: "Open Sans", sans-serif;
	font-size: .7rem;
	font-weight: 300;
	letter-spacing: 0.1rem;
	padding: .5rem 0;
	text-align: center;
	text-transform: uppercase;
}

a {
	color: rgb(19, 56, 117);
}
	
p {
	font-size: 0.8rem;
	line-height: 1.5;
}

div {
	background: #fff;
	padding: .5rem;	
}

              
            
!

JS

              
                
              
            
!
999px

Console