css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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="container">
  
    <div class="hero__container">
      <div class="header__container">  
        <header class="row">
            <div class="col__three-quarter">
                <div class="header__logo">Make this page responsive</div>
            </div>

            <div class="col__quarter">
                <nav>
                    <a href="#" class="button--menu float-right">
                        <div class="menu--icon"></div>
                        <div class="menu--icon"></div>
                        <div class="menu--icon"></div>
                    </a>
                </nav>
            </div>
        </header>
      </div>
        <div class="row">
          <div class="col__full">
              <div class="hero__text">
                <h1>Hero Text Goes Here!</h1>
              </div>
          </div>
        </div>
    </div>
    
    <div class="row">
        <div class="col__two-thirds">
            <section class="article__section">
                <article class="article__container">
                    <div class="article__meta">
                        <h2 class="article__title"><a href="#">Article 1</a></h2>
                        <h3 class="article__byline">By <a href="#">Eric Malcolm</a> - Posted on <a href="#">August 4th, 2015 at 7:34pm</a></h3>
                    </div>
                    <div class="article__content">
                        <p>Bacon ipsum dolor amet alcatra pork capicola, chuck brisket shoulder frankfurter short ribs. Ball tip biltong pork ham hock venison rump turducken t-bone kielbasa corned beef boudin beef cow filet mignon sirloin. Shankle meatball t-bone pork loin flank kevin beef alcatra ham hock pork chop spare ribs meatloaf. Pork loin chuck short loin capicola porchetta jerky sirloin corned beef tongue ham hock salami picanha beef ground round pork belly.</p>
                    </div>
                </article>
                
                <article class="article__container">
                    <div class="article__meta">
                        <h2 class="article__title"><a href="#">Article 1</a></h2>
                        <h3 class="article__byline">By <a href="#">Eric Malcolm</a> - Posted on <a href="#">August 4th, 2015 at 7:34pm</a></h3>
                    </div>
                    <div class="article__content">
                        <p>Bacon ipsum dolor amet alcatra pork capicola, chuck brisket shoulder frankfurter short ribs. Ball tip biltong pork ham hock venison rump turducken t-bone kielbasa corned beef boudin beef cow filet mignon sirloin. Shankle meatball t-bone pork loin flank kevin beef alcatra ham hock pork chop spare ribs meatloaf. Pork loin chuck short loin capicola porchetta jerky sirloin corned beef tongue ham hock salami picanha beef ground round pork belly.</p>
                    </div>
                </article>
                
                <article class="article__container">
                    <div class="article__meta">
                        <h2 class="article__title"><a href="#">Article 1</a></h2>
                        <h3 class="article__byline">By <a href="#">Eric Malcolm</a> - Posted on <a href="#">August 4th, 2015 at 7:34pm</a></h3>
                    </div>
                    <div class="article__content">
                        <p>Bacon ipsum dolor amet alcatra pork capicola, chuck brisket shoulder frankfurter short ribs. Ball tip biltong pork ham hock venison rump turducken t-bone kielbasa corned beef boudin beef cow filet mignon sirloin. Shankle meatball t-bone pork loin flank kevin beef alcatra ham hock pork chop spare ribs meatloaf. Pork loin chuck short loin capicola porchetta jerky sirloin corned beef tongue ham hock salami picanha beef ground round pork belly.</p>
                    </div>
                </article>
            </section>
        </div>
        <div class="col__third">
            <div class="sidebar__container">
                <section class="sidebar__section">
                    <h3>Sidebar Content Title</h3>
                    <p>Sidebar content goes here. and keeps going if necessary to wrap a couple times.</p>
                </section>
                <section class="sidebar__section">
                    <h3>Sidebar Content Title #2</h3>
                    <p>Sidebar content #2 goes here. and keeps going if necessary to wrap a couple times.</p>
                    <ul>
                        <li>Item 1</li>
                        <li>Item 2</li>
                        <li>Item 3</li>
                    </ul>
                </section>
            </div>
        </div>
    </div>
    
    <footer> Copright &copy; 2015 - Eric Malcolm</footer>
    
</div>
            
          
!
            
              /* 
    $Variables
    $Normalize
    $Grid
    $Setup
    $Header
    $Articles 
*/



/* $Variables */

@white: #fff;
@black: #000;
@blue: #00a5f6;
@darkblue: #1e414e;



/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */

/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS and IE text size adjust after device orientation change,
 *    without disabling user zoom.
 */

html {
  font-family: sans-serif; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/**
 * Remove default margin.
 */

body {
  margin: 0;
}

/* HTML5 display definitions
   ========================================================================== */

/**
 * Correct `block` display not defined for any HTML5 element in IE 8/9.
 * Correct `block` display not defined for `details` or `summary` in IE 10/11
 * and Firefox.
 * Correct `block` display not defined for `main` in IE 11.
 */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}

/**
 * 1. Correct `inline-block` display not defined in IE 8/9.
 * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
 */

audio,
canvas,
progress,
video {
  display: inline-block; /* 1 */
  vertical-align: baseline; /* 2 */
}

/**
 * Prevent modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */

audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Address `[hidden]` styling not present in IE 8/9/10.
 * Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
 */

[hidden],
template {
  display: none;
}

/* Links
   ========================================================================== */

/**
 * Remove the gray background color from active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * Improve readability of focused elements when they are also in an
 * active/hover state.
 */

a:active,
a:hover {
  outline: 0;
}

/* Text-level semantics
   ========================================================================== */

/**
 * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
 */

abbr[title] {
  border-bottom: 1px dotted;
}

/**
 * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
 */

b,
strong {
  font-weight: bold;
}

/**
 * Address styling not present in Safari and Chrome.
 */

dfn {
  font-style: italic;
}

/**
 * Address variable `h1` font-size and margin within `section` and `article`
 * contexts in Firefox 4+, Safari, and Chrome.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/**
 * Address styling not present in IE 8/9.
 */

mark {
  background: #ff0;
  color: #000;
}

/**
 * Address inconsistent and variable font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove border when inside `a` element in IE 8/9/10.
 */

img {
  border: 0;
}

/**
 * Correct overflow not hidden in IE 9/10/11.
 */

svg:not(:root) {
  overflow: hidden;
}

/* Grouping content
   ========================================================================== */

/**
 * Address margin not present in IE 8/9 and Safari.
 */

figure {
  margin: 1em 40px;
}

/**
 * Address differences between Firefox and other browsers.
 */

hr {
  box-sizing: content-box;
  height: 0;
}

/**
 * Contain overflow in all browsers.
 */

pre {
  overflow: auto;
}

/**
 * Address odd `em`-unit font size rendering in all browsers.
 */

code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Forms
   ========================================================================== */

/**
 * Known limitation: by default, Chrome and Safari on OS X allow very limited
 * styling of `select`, unless a `border` property is set.
 */

/**
 * 1. Correct color not being inherited.
 *    Known issue: affects color of disabled elements.
 * 2. Correct font properties not being inherited.
 * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
 */

button,
input,
optgroup,
select,
textarea {
  color: inherit; /* 1 */
  font: inherit; /* 2 */
  margin: 0; /* 3 */
}

/**
 * Address `overflow` set to `hidden` in IE 8/9/10/11.
 */

button {
  overflow: visible;
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
 * Correct `select` style inheritance in Firefox.
 */

button,
select {
  text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 */

button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button; /* 2 */
  cursor: pointer; /* 3 */
}

/**
 * Re-set default cursor for disabled elements.
 */

button[disabled],
html input[disabled] {
  cursor: default;
}

/**
 * Remove inner padding and border in Firefox 4+.
 */

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */

input {
  line-height: normal;
}

/**
 * It's recommended that you don't attempt to style these elements.
 * Firefox's implementation doesn't respect box-sizing, padding, or width.
 *
 * 1. Address box sizing set to `content-box` in IE 8/9/10.
 * 2. Remove excess padding in IE 8/9/10.
 */

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Fix the cursor style for Chrome's increment/decrement buttons. For certain
 * `font-size` values of the `input`, it causes the cursor style of the
 * decrement button to change from `default` to `text`.
 */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
 */

input[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  box-sizing: content-box; /* 2 */
}

/**
 * Remove inner padding and search cancel button in Safari and Chrome on OS X.
 * Safari (but not Chrome) clips the cancel button when the search input has
 * padding (and `textfield` appearance).
 */

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * Define consistent border, margin, and padding.
 */

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct `color` not being inherited in IE 8/9/10/11.
 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
 */

legend {
  border: 0; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Remove default vertical scrollbar in IE 8/9/10/11.
 */

textarea {
  overflow: auto;
}

/**
 * Don't inherit the `font-weight` (applied by a rule above).
 * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
 */

optgroup {
  font-weight: bold;
}

/* Tables
   ========================================================================== */

/**
 * Remove most spacing between table cells.
 */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}


/* $Grid */


[class*='col__'] {
  float: left;
}

.row {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.container:after,
.row:after {
  content: "";
  display: table;
  clear: both;
}

.col__full {
  width: 100%;
}

.col__two-thirds {
  width: 66.666%;
}

.col__third {
  width: 33.333%;
}

.col__half {
  width: 50%;
}

.col__quarter {
  width: 25%;
}

.col__three-quarter {
  width: 75%;
}


.float-right {
  float: right;
}

.float-left {
  float: left;
}

@media handheld, only screen and (min-width: 400px) and (max-width: 800px) {

	.row {
		width: 100%;
		min-width: 0;
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
	}

	[class*='col__'] {
		width: auto;
		float: none;
		margin: 0;
		padding: 0;
	}
  
  .col__quarter {
    float: left;
    width: 25%;
  }

  .col__three-quarter {
    float: left;
    width: 75%;
  }
  
}

/* $Setup */

body {
  background: @darkblue;
  color: @white;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

h4 {
  font-size: 16px;   
}

h1, h2, h3, h4 {
  margin: 0 0 14px 0;
}

a {
  color: @blue;
  text-decoration: none;
  
  &:hover {
    text-decoration: underline;
  }
}

.container { 
}


/* $Header */

.header__container {
  padding: 15px;
  background: @black;
}

.header__logo {
  font-size: 20px;
  font-weight: bold;
}


.button--menu {
  padding: 10px 10px 8px 10px;
  height: auto;
  width: auto;
  border: 1px solid @white;
  
  .menu--icon {
    height: 3px;
    width: 25px;
    margin-bottom: 5px;
    background-color: @white;
  }
  
  &:hover {
    border-color: @blue;
    .menu--icon {
      background-color: @blue;
    }
  }
}



.hero__container {
  width: 100%;
  height: auto;
  background: url(http://placehold.it/1350x350);
  margin: 0 0 30px 0;
}

.hero__text {
  
  padding: 60px 0;
}


/* $Articles */


.article__section {
  padding: 0 30px 0 0;
}

@media handheld, only screen and (min-width: 400px) and (max-width: 800px) {
  
  .article__section {
    padding: 0;
  }
  
}

.article__container {
  border: 1px solid #fff;
  border-radius: 5px;
  padding: 20px;
  margin: 0 0 30px 0;
}

.article__title {

}

.article__byline {
  font-weight: normal;
  font-size: 12px;
}


/* Sidebar */


.sidebar__container {
  background: #8dafbc;
  padding: 20px;
  border-radius: 5px;
}

.sidebar__section {
  margin: 0 0 20px 0;
  border-bottom: 1px solid #fff;

  &:last-of-type {
    border: 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.
Loading ..................

Console