123

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.

            
              <div class="main-wrapper">
  <header class="main-header">
    <h1 class="main-logo"><a href="#">Logo</a></h1>
    <ul class="main-nav">
      <li><a href="#">Link 1</a></li>
      <li><a href="#">Link 2</a></li>
      <li><a href="#">Link 3</a></li>
      <li><a href="#">Link 4</a></li>
    </ul>
  </header>
<!-- 		<div class="main-banner">
    <h1>This is the Main Banner Heading</h1>
    <p>Andouille pork chop pancetta drumstick ground round beef ribs swine brisket ham.</p>
  </div> -->
  <div class="content-row">
    <div class="primary-content col">
      <h2>Primary Content</h2>
      <p>Bacon ipsum dolor sit amet chicken pork ground round brisket corned beef ball tip shank tail salami filet mignon ham hock pork belly venison shankle. Pig kielbasa drumstick sausage pork chop boudin. Chicken t-bone salami pork chop, beef ribs kevin ham tri-tip beef venison biltong brisket.</p>
      <p>Venison strip steak meatball chicken, brisket prosciutto sirloin. Capicola drumstick brisket tri-tip salami. Chicken beef jerky, tail turkey prosciutto cow ham sirloin boudin tenderloin. Meatloaf tri-tip turducken brisket andouille, pork belly corned beef fatback hamburger.</p>
    </div>
    <div class="extra-content col">
      <h3>Extra Content</h3>
      <p>Strip steak tenderloin kevin swine meatloaf capicola, doner beef turducken pancetta corned beef pork loin shoulder.</p>
      <hr>
      <p>Pork filet mignon leberkas, tail swine venison pancetta turkey shoulder brisket chalkers likes hamburgers.</p>
    </div>
    <div class="secondary-content col">
      <h3>Secondary Content</h3>
      <p>Strip steak tenderloin kevin swine meatloaf capicola, doner beef turducken pancetta corned beef pork loin shoulder.</p>
      <hr>
      <p>Pork filet mignon leberkas, tail swine venison pancetta turkey shoulder brisket chalkers likes hamburgers.</p>
    </div>
  </div>
  <footer class="main-footer">
    <p>&copy;2014 Example Layout</p>
  </footer>
</div>

            
          
!
            
              
/* Page Styles
================================ */

* {
	box-sizing: border-box;
}

html,
body{
	height: 100%;
}

body {
	font: normal 1.1em/1.5 sans-serif;
	color: #222;
	background-color: #edeff0;
}

ul {
  list-style-type: none;
  padding-left: 0;
  margin-left: 0;
}


/* Layout Element Colors
================================ */

.main-header       { background-color: #384047; }
.main-logo a       { background-color: #5fcf80; }
.main-nav a        { background-color: #3f8abf; }
.primary-content   { background-color: #caebf6; }
.secondary-content { background-color: #bfe3d0; }
.main-footer       { background-color: #b7c0c7; }

/* Header, Banner, and Footer Layout
===================================== */

.main-wrapper {
	width: 90%;
	margin: auto;
}

.main-header {
	min-height: 100px;
	padding: 15px;
}

.main-logo,
.main-nav li {
  float: left;
}

.main-logo {
  margin: 18px 50px 0 0;
}

.main-nav li {
  margin: 15px 10px 0 10px;
}

.main-logo a, 
.main-nav a {
	display: block;
	color: white;
	text-decoration: none;
	text-align: center;
	padding: 5px 15px;
	border-radius: 5px;
}

.main-banner {
	background: #dfe2e4;
	text-align: center;
	padding: 35px 15px;
}

.main-footer {
	text-align: center;
	padding-top: 5px;
	padding-bottom: 5px;
}


/* Column Layout
================================ */

.col {
	padding: 20px;
}


/* Media Queries
================================ */

@media (max-width: 768px) {
	.main-wrapper,
	.main-nav li, 
	.main-logo {
		width: initial;
		height: initial;
	}
  
	.main-logo {
		margin-right: 0;
	}
  
	.extra-content {
		display: none;
	}
}



            
          
!
999px
🕑 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.

Console