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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <body>
<div class="grid">
    <div class="body-wrap">
        <div class="nav-wrap">
        <div class="logo-top">GroovyMotion</div>
        <nav><li><a href="#">Home</a></li><li><a href="#">About</a></li><li><a href="#">Services</a></li><li><a href="#">Contact</a></li></nav>
        </div>
        <div class="col-100"><h4>column 100%</h4> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Vitae, eius, sapiente, esse in voluptate excepturi consequuntur magnam possimus alias incidunt facere reiciendis ex a cumque omnis eveniet ipsa error nihil!</div>
        <div class="col-85"><h4>column 85%</h4> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Vitae, eius, sapiente, esse in voluptate excepturi consequuntur magnam possimus alias incidunt facere reiciendis ex a cumque omnis eveniet ipsa error nihil!</div><div class="col-15"><h4>column 15%</h4>Lorem ipsum dolor sit amet</div>
        <div class="col-80"><h4>column 80%</h4> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Totam, voluptas, nam, possimus eligendi fugiat facilis dolore quaerat eveniet debitis necessitatibus ab hic consequuntur cupiditate dolorem culpa cumque amet laudantium ducimus.</div><div class="col-20"><h4>column 20%</h4>Lorem ipsum dolor sit amet, consectetur adipisicing elit</div>
        <div class="col-75"><h4>column 75%</h4> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quod, rem, fugiat, omnis cumque accusantium maxime laborum mollitia distinctio quo ipsa at laudantium excepturi optio libero numquam sapiente aperiam ex illo.</div><div class="col-25"><h4>column 25%</h4>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Velit, ad, consequatur! Ex, mollitia, veniam,</div>
        <div class="col-70"><h4>column 70%</h4> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rerum, delectus, quidem, cumque, maxime reprehenderit ullam expedita consectetur obcaecati inventore eveniet voluptas saepe incidunt ipsam veritatis eligendi quibusdam dolorum temporibus modi.</div><div class="col-30"><h4>column 30%</h4>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odit, voluptas, maxime, sit placeat libero sapiente aliquam </div>
        <div class="col-65"><h4>column 65%</h4> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sapiente, similique, atque! Sint, explicabo, corrupti, rerum, officiis nulla odio alias error dolorum voluptatem architecto minima eum recusandae quos vero inventore. Porro.</div><div class="col-35"><h4>column 35%</h4>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nesciunt, labore magni iure vitae incidunt perferendis commodi velit tempore quis repella</div>
        <div class="col-60"><h4>column 60%</h4> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Id, labore, mollitia. Enim, laborum, placeat vitae quos nemo itaque dolorem assumenda ducimus dolore sapiente minima a molestiae repellendus consequatur necessitatibus nesciunt.</div><div class="col-40"><h4>column 40%</h4>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ut, corrupti, itaque, non rerum commodi nobis adipisci omnis provident nulla officiis beatae sed similique </div>
        <div class="col-55"><h4>column 55%</h4> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis, debitis culpa cum molestias eveniet id iure. Consequuntur, libero, distinctio, dolor, vero minima et culpa quisquam blanditiis nesciunt quaerat doloribus obcaecati.</div><div class="col-45"><h4>column 45%</h4> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consequatur, corrupti, sed voluptate natus dolores totam ad cupiditate error quis optio soluta eius maxime distinctio possimus expedita temporibus eum minima reiciendis?</div>
        <div class="col-50"><h4>column 50%</h4>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam, officiis eos est quo sequi numquam odio fugit modi. Earum consectetur quibusdam facere vel ipsum quasi nihil voluptatibus voluptatum cum dicta.</div><div class="col-50"><h4>column 50%</h4>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio, rem dolorem enim blanditiis quae tenetur suscipit cumque labore inventore ea atque nulla excepturi recusandae eum quasi accusamus aliquam quis facilis?</div>
    <div class="footer">
        <ul class="bottom-nav"><li><a href="">Home</a></li><li><a href="">Products</a></li><li><a href="">Support</a></li><li><a href="">Contact</a></li></ul>
        <div class="copyright">&copy; 2014 GROOVYMOTION</div>
    </div>
	</div>
</div> <!-- End Grid -->
              
            
!

CSS

              
                @font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 400;
  src: local('Ubuntu'), url(http://themes.googleusercontent.com/static/fonts/ubuntu/v5/_xyN3apAT_yRRDeqB3sPRg.woff) format('woff');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 500;
  src: local('Ubuntu Medium'), local('Ubuntu-Medium'), url(http://themes.googleusercontent.com/static/fonts/ubuntu/v5/OsJ2DjdpjqFRVUSto6IffD8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
}
@font-face {
  font-family: 'Carrois Gothic SC';
  font-style: normal;
  font-weight: 400;
  src: local('Carrois Gothic SC'), local('CarroisGothicSC-Regular'), url(http://themes.googleusercontent.com/static/fonts/carroisgothicsc/v2/bVp4nhwFIXU-r3LqUR8DSNce8QJcbznVYyCETTx3XZM.woff) format('woff');
}

*, *:before, *:after {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

* {
	margin: 0;
	padding: 0;
}

html, html a {
    -webkit-font-smoothing: antialiased;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
}

body {
    margin: 0 auto;
    font-size: 100%;
    font-family: Ubuntu, Verdana, Helvetica, sans-serif;
    text-shadow: 0 0 1px transparent; /* google font pixelation fix */
    background: rgb(223, 231, 240);
    }

a {	text-decoration: none }
li {list-style:none}

/****** FONTS SETTINGS ******/
.logo-top {
    font: 400 2em/1 'Carrois Gothic SC'; 
    color: rgb(230,230,255)
    }
h4 { font: 500 1em/1 Ubuntu }
p { font: 400 0.9em/1.4 Ubuntu; margin-bottom: 0.8em }
nav li { font: 500 1em/1 Ubuntu; text-transform: uppercase  }
.bottom-nav li {font: 500 1em/1 Ubuntu; text-transform: uppercase}
nav li a { color: rgb(130, 130, 130) }
h4, p, ul { color: rgb(0,0,0) }
.bottom-nav li a, .copyright, .copyright a, .bottom-nav a { color: rgb(50,50,50) }
nav li a:hover, .copyright a:hover, .bottom-nav li a:hover, .active, .back a { color: rgb(0,0,0)}

/********** LAYOUT & COLUMNS **********/
.grid {
max-width:1280px;
margin:0 auto;
padding:0 2em
}
.body-wrap {max-width: 100%; margin: 0 auto; padding: 0;border: 1px solid;overflow: hidden}
*[class*="col-"] {padding: 0.5em}
.col-100  { float: left; width: 100% }
.col-85  { float: left; width: 85% }
.col-80  { float: left; width: 80% }
.col-75  { float: left; width: 75%  }
.col-70  { float: left; width: 70%  }
.col-65  { float: left; width: 65%  }
.col-60  { float: left; width: 60%  }
.col-55  { float: left; width: 55%  }
.col-50  { float: left; width: 50%  }
.col-45  { float: left; width: 45%  }
.col-40  { float: left; width: 40% }
.col-35  { float: left; width: 35%  }
.col-30  { float: left; width: 30% }
.col-25  { float: left; width: 25% }
.col-20 { float: left; width: 20% }
.col-15 { float: left; width: 15% }
        .footer {
            width: 100%;
            float: left;
            text-align: center;
            padding: 0.6em 0;
            border-top: 1px solid rgb(80,80,80);
            background: rgb(230,230,230)
            }
            .bottom-nav {
                width: 100%;
                display: block;
                float: left;
                margin-top: 0.3em;
                text-align: center
                }
            .bottom-nav li {
                list-style: none;
                display: inline-block;
                margin-right: 1.6em;
                }
            .copyright {display: inline-block; width: 100%; margin-top: 0.5em}

/********** NAVBAR **********/
.nav-wrap {
    float: left;
    margin: 0 auto;
    width: 100%;
    height: 3em;
    background: rgb(92,101,165);
    }
    .logo-top {float: left; padding: 0.25em 0 0 0.6em}
nav { float: right; text-align: center; margin-right: 1.3em }
	nav li {
	    list-style: none;
        display: inline-block;
		}
		nav li a {
            display: block;
            height: 3em;
            padding: 0 0.7em;
            line-height: 2.8em;
            color: rgb(189,250,255);
            -webkit-transition: background linear .3s;
            -moz-transition: background linear .3s;
            -o-transition: background linear .3s;
            transition: background linear .3s;
            }
            nav li a:hover {
                color: rgb(0,0,0);
                background: rgb(189,250,255);
                }
/********** MEDIA-QUERIES **********/
/*@media all and (min-width:768px) and (max-width:1024px) {
.grid{max-width: 768px}
.grid [class*="col-"] {
    float: none;
    width: auto;
    clear: both;
    display: block;
    }
}*/
@media all and (min-width:480px) and (max-width:768px) {
.grid{margin: 0 auto;padding:0}
.grid [class*="col-"] {
    float: none;
    width: auto;
    clear: both;
    display: block;
    margin: 0;
    }
.nav-wrap {height:4.5em}
.logo-top {width: 100%;text-align: center; font-size: 1.5em}
nav {float: left;width: 100%;}
nav li a {height: 2.6em}
}
@media all and (max-width:480px) {
.grid{max-width: 480px;margin: 0 auto;padding: 0}
.grid [class*="col-"] {
    float: none;
    width: auto;
    clear: both;
    display: block;
    }
.nav-wrap {height:auto}
.logo-top {width: 100%;text-align: center; font-size: 1.5em}
nav {float: none;display: block; width: 100%}
nav li {width: 100%}
.bottom-nav {display: none}
}
              
            
!

JS

              
                
              
            
!
999px

Console