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.

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

              
                <section id="about">
	<div class="section-title">
		<svg class="svg-icon" width="30" height="30" aria-hidden="true" role="img" focusable="false" viewBox="0 0 44 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M43.6234 15.6257C37.2917 13.1018 13.361 7.98929 7.0293 7.85986C13.361 8.054 37.2917 3.52391 43.6234 1" stroke-miterlimit="10"></path><path d="M42.5768 7.92456H0" stroke-miterlimit="10"></path></svg>		About <svg class="svg-icon" width="30" height="30" aria-hidden="true" role="img" focusable="false" viewBox="0 0 45 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.999635 15.6257C7.33131 13.1018 31.2621 7.98929 37.5938 7.85986C31.2621 8.054 7.33131 3.52391 0.999635 1" stroke-miterlimit="10"></path><path d="M2.04673 7.92456H44.6235" stroke-miterlimit="10"></path></svg></div>
	Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
	in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</section>

<section id="restaurants">
	<div class="section-title">
		<svg class="svg-icon" width="30" height="30" aria-hidden="true" role="img" focusable="false" viewBox="0 0 44 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M43.6234 15.6257C37.2917 13.1018 13.361 7.98929 7.0293 7.85986C13.361 8.054 37.2917 3.52391 43.6234 1" stroke-miterlimit="10"></path><path d="M42.5768 7.92456H0" stroke-miterlimit="10"></path></svg>		Our Restaurants <svg class="svg-icon" width="30" height="30" aria-hidden="true" role="img" focusable="false" viewBox="0 0 45 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.999635 15.6257C7.33131 13.1018 31.2621 7.98929 37.5938 7.85986C31.2621 8.054 7.33131 3.52391 0.999635 1" stroke-miterlimit="10"></path><path d="M2.04673 7.92456H44.6235" stroke-miterlimit="10"></path></svg></div>
	Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
	in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

	<a href="#" class="btn">Menu</a>
</section>

<section id="contact">
	<div class="section-title">
		<svg class="svg-icon" width="30" height="30" aria-hidden="true" role="img" focusable="false" viewBox="0 0 44 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M43.6234 15.6257C37.2917 13.1018 13.361 7.98929 7.0293 7.85986C13.361 8.054 37.2917 3.52391 43.6234 1" stroke-miterlimit="10"></path><path d="M42.5768 7.92456H0" stroke-miterlimit="10"></path></svg>		Contact Us<svg class="svg-icon" width="30" height="30" aria-hidden="true" role="img" focusable="false" viewBox="0 0 45 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.999635 15.6257C7.33131 13.1018 31.2621 7.98929 37.5938 7.85986C31.2621 8.054 7.33131 3.52391 0.999635 1" stroke-miterlimit="10"></path><path d="M2.04673 7.92456H44.6235" stroke-miterlimit="10"></path></svg></div>
	Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commod

	<form>
		First name:<br>
		<input type="text" name="firstname" value="Mickey">
		<br> Last name:<br>
		<input type="text" name="lastname" value="Mouse">
		<br><br>
		<input type="submit" value="Submit">
	</form>
</section>
              
            
!

CSS

              
                // Try changing the color of each section

section {
	background-color: pink;
	color: navy;
	padding: 50px;
	margin: auto;
	max-width: 800px;
	text-align: center;
	
	&:nth-child(2n) {
		color: brown;
		background-color: beige;
	}
	&:nth-child(3n) {
		color:chartreuse;
		background-color: black;
	}
}

.section-title {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 30px;
	svg {
		stroke: currentColor;
		margin: 0 1em;
	}
}

.btn,
input[type=text],
input[type=submit] {
	background-color: transparent;
	text-decoration: none;
	border: 1px solid currentColor;
	padding: 1em 2em;
	display: table;
	border-radius: 5px;
	color: currentColor;
	margin: 20px auto;
	&:hover {
		background-color: lavender;
		color: black;
		border-color: transparent;
	}
}

form {
	margin: 20px 0;
}
              
            
!

JS

              
                
              
            
!
999px

Console