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

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

              
                <!-- HEADER -->
<header>
  <h1 class="text-center">Practice your imagination</h1>
  <h3 class="text-center">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.</h3>
</header>

<!-- SERVICES section -->
<section class="services">
  <div class="row">
    <h2 class="text-center">What we can do for you</h2>
    <div class="medium-6 large-3 columns">
      <div class="services-info text-center">
        <i class="fa fa-bar-chart fa-4x"></i>
        <h4>Statistics</h4>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Nullam dictum felis eu pede mollis pretium.</p>
        <a href="#">Learn more</a>
      </div>
    </div>
    <div class="medium-6 large-3 columns">
      <div class="services-info text-center">
        <i class="fa fa-tachometer fa-4x"></i>
        <h4>Volume</h4>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Nullam dictum felis eu pede mollis pretium.</p>
        <a href="#">Learn more</a>
      </div>
    </div>
    <div class="medium-6 large-3 columns">
      <div class="services-info text-center">
        <i class="fa fa-line-chart fa-4x"></i>
        <h4>Graphs</h4>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Nullam dictum felis eu pede mollis pretium.</p>
        <a href="#">Learn more</a>
      </div>
    </div>
    <div class="medium-6 large-3 columns">
      <div class="services-info text-center">
        <i class="fa fa-picture-o fa-4x"></i>
        <h4>Photos</h4>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Nullam dictum felis eu pede mollis pretium.</p>
        <a href="#">Learn more</a>
      </div>
    </div>
  </div>
</section>

<!-- ABOUT section -->
<section class="about">
  <div class="row">
    <div class="medium-8 large-9 columns">
      <h3 class="text-center">We're here to help you solve your problems.</h3>
    </div>
    <div class="medium-4 large-3 columns">
      <a role="button" href="#" class="button success radius">Learn More</a>
    </div>
  </div>
  <div class="row">
    <div class="small-12 columns">
      <p class="text-center">Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem.</p>
    </div>
  </div>
</section>

<!-- ART section -->
<!-- we could have used block-grid -->
<section class="art">
  <div class="row full-width">
    <h3 class="text-center">We love <a role="button" href="https://unsplash.com/" class="button success radius" target="_blank">Unsplash</a> Photos</h3>
    <div class="medium-6 large-3 columns no-padding"><img src="https://unsplash.it/800/600?image=481"></div>
    <div class="medium-6 large-3 columns no-padding"><img src="https://unsplash.it/800/600?image=466"></div>
    <div class="medium-6 large-3 columns no-padding"><img src="https://unsplash.it/800/600?image=428"></div>
    <div class="medium-6 large-3 columns no-padding"><img src="https://unsplash.it/800/600?image=499"></div>
  </div>
</section>

<!-- FOOTER section -->
<footer>
  <div class="row">
    <div class="medium-4 columns">
      <h4>About Us</h4>
      <p>Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Etiam sit amet orci eget eros faucibus tincidunt.</p>
    </div>
    <div class="medium-4 columns">
      <h4>Our Mission</h4>
      <p>Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus.</p>
    </div>
    <div class="medium-4 columns">
      <h4>Find Us</h4>
      <!-- we could have used the default grid -->
      <ul class="small-block-grid-2">
        <li>
          <a href="#">
            <p>Let's meet and discuss</p>
            <i class="fa fa-map-marker fa-2x show-for-large-up"></i>
          </a>
        </li>
        <li>
          <a href="#">
            <p>Send us your thoughts</p>
            <i class="fa fa-envelope-o fa-2x show-for-large-up"></i>
          </a>
      </ul>
    </div>
  </div>
</footer>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Alegreya+Sans:400,700);

/**
 * RESET Styles
 *
 */


body {
	background: #cdc8a5;
}

h1, h2, h3, h4, a, p {
	color: black;
	font-family: 'Alegreya Sans', sans-serif;
}


/**
 * HEADER styles
 *
 */


header {
	background: #333;
	padding: 60px;
}

header h1, 
header h3,
footer h4 {
	color: white;
}

header h1 {
	font-weight: 700;
}

header h3, 
footer h4 {
	font-weight: 400;
}


/**
 * SERVICES styles
 *
 */


.services .row {
	background: #a8a064;
	border: 1px solid #8b844e;
}

.services .services-info {
	margin: 0 0 30px;
	padding: 10px;
	border: 1px solid #9b9357;
	border-radius: 3px;
}

.services i {
	color: #5a5533;
}

.services a {
	padding: 3px;
	border-bottom: 1px dashed #222;
}


/**
 * ABOUT styles
 *
 */


.about .row:first-child {
	margin-top: 30px;
	border-bottom: 1px solid #c4be95;
	padding: 10px;
}

.about h3, 
.about a {
	margin: 10px 0;
}

.about a {
	display: block;
	width: 80%;
	margin-right: auto;
	margin-left: auto;
}

.about .row:last-child {
	margin-top: 20px;
	margin-bottom: 20px;
}

.about .row:last-child p {
	font-size: 1.3em;
	margin: 0;
	padding: 0px 5px 5px;
	font-weight: 300;
}


/**
 * ART styles
 *
 */


.art .full-width {
	max-width: 100%;
}

.art {
	border-top: 1px solid #c4be95;
	border-bottom: 2px solid #222;
}
 
.art .no-padding {
	padding: 0;
}

.art a {
	margin: 0;
}

.art h3 {
	margin: 20px 0;
}


/**
 * FOOTER styles
 *
 */


footer {
	padding: 15px 0;
	color: white;
	background: #2f2f2f;
}

footer p {
	font-weight: 300;
}

footer h4 {
	border-bottom: 1px solid dimgray;
}

footer p, 
footer a p, 
footer i {
	color: #a2a2a2;
}

footer a p {
	margin: 0 0 3px 0;
}

footer a:hover p, 
footer a:hover i {
	color: white;
}


/**
 * MEDIA QUERIES styles
 *
 */


@media only screen and (min-width: 40.063em) {

	header {
		padding-bottom: 130px;
	}

	.services .row {
		margin-top: -70px;
	}
  
	.about a {
		width: 100%;
	}

	footer p {
		margin: 0;
	}
    
}


@media only screen and (min-width: 64.063em) {

  .services .services-info {
    margin: 30px 0;
  }
  
}
              
            
!

JS

              
                // See:
// http://www.sitepoint.com/grid-system-comparison-bootstrap-vs-foundation
              
            
!
999px

Console