Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <div class="wrapper">
	<header class="text-center">
		<h1 class="headliner">Food Street</h1>
		<h2 class="supporting-headliner">The philosophy of eating</h2>
	</header>
	<hr />
	<section class="grid">
		<div class="even-split">
			<p>Street style Thai basil tacos kimchi potato sweet potato muffins Malaysian seeds springtime strawberry ghost pepper hearty roasted brussel sprouts hazelnut shiitake. Artichoke hearts strawberry mango smoothie roasted butternut squash avocado dressing drizzle cinnamon toast dark chocolate elderberry with coconut sugar heat eating together peanut butter crunch lentils shiitake mushrooms lemon sleepy morning tea green pepper red grapes cremini mushrooms bento box banana chili peppermint simmer.</p>
		</div>
		<div class="even-split">
			<p>Street style Thai basil tacos kimchi potato sweet potato muffins Malaysian seeds springtime strawberry ghost pepper hearty roasted brussel sprouts hazelnut shiitake. Artichoke hearts strawberry mango smoothie roasted butternut squash avocado dressing drizzle cinnamon toast dark chocolate elderberry with coconut sugar heat eating together peanut butter crunch lentils shiitake mushrooms lemon sleepy morning tea green pepper red grapes cremini mushrooms bento box banana chili peppermint simmer.</p>
		</div>
	</section>
</div>
              
            
!

CSS

              
                /*

https://hankchizljaw.com/wrote/a-modern-css-reset/

Modern CSS Reset by Andy Bell.

*/

/* Box sizing rules */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Remove default padding */
ul[class],
ol[class] {
	padding: 0;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
	margin: 0;
}

/* Set core body defaults */
body {
	min-height: 100vh;
	scroll-behavior: smooth;
	text-rendering: optimizeSpeed;
	line-height: 1.5;
}

/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
	list-style: none;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
	text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img {
	max-width: 100%;
	display: block;
}

/* Natural flow and rhythm in articles by default */
article > * + * {
	margin-top: 1em;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
	font: inherit;
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

html {
	font-size: 62.5%;
}

body {
	font-family: "Lora", Helvetica, Arial, sans-serif;
	/* font-family: 'Roboto', sans-serif;
	   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; */
	font-size: 1.4rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 300;
	font-family: "Oswald", sans-serif;
	margin: 1rem 0;
}

h1 {
	font-size: 5rem;
}

h2 {
	font-size: 4.2rem;
}

h3 {
	font-size: 3.6rem;
}

h4 {
	font-size: 3rem;
}

h5 {
	font-size: 2.4rem;
}

h6 {
	font-size: 1.5rem;
}

.supporting-headliner {
	font-size: 3rem;
}

p {
	font-size: 1.6rem;
	margin: 2rem 0;
}

.text-left {
	text-align: left;
}

.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

:root {
	--grey: rgba(0, 0, 0, 1);
}

.wrapper {
	border: 1px solid var(--grey);
	padding-top: 2rem;
	padding-right: 4rem;
	padding-bottom: 2rem;
	padding-left: 4rem;
	margin: 2rem;
}

header {
	text-transform: uppercase;
	margin-bottom: 4rem;
}

@media (min-width: 768px) {
	.wrapper {
		margin: 2rem auto 0;
		max-width: 1440px;
		width: 70%;
	}

	.grid {
		display: grid;
		grid-template-columns: repeat(12, 1fr);
		grid-gap: 2rem;
	}

	.even-split {
		grid-column: span 6;
	}
}

              
            
!

JS

              
                
              
            
!
999px

Console