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 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

              
                <section class="module parallax parallax-1">
  <div class="container">
    <h1>ABOUT</h1>
  </div>
</section>

<section class="module content">
  <div class="container about">
    <div class="imgContainer"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/125980/chamonixKitchenSmall.jpg"/></div>
    <p class="intro">Whitecross Properties description ... Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quam, provident, ea. Et omnis iusto, aspernatur obcaecati praesentium animi deserunt nemo fuga pariatur repudiandae eligendi maxime ad natus, consectetur odit ut. Et omnis iusto, aspernatur obcaecati praesentium animi deserunt nemo fuga pariatur repudiandae eligendi maxime ad natus, consectetur odit ut.</p>
  </div>
</section>

<section class="module parallax parallax-2">
  <div class="container">
    <h1>WORK</h1>
  </div>
</section>

<section class="module content">
  <div class="container">
    <h2>Lorem Ipsum Dolor</h2>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
  </div>
</section>

<section class="module parallax parallax-3">
  <div class="container">
    <h1>CONTACT</h1>
  </div>
</section>

<section class="module content contact-form">
  <div class="container">
    <h2>THIS WILL BE A CONTACT FORM</h2>
  </div>
</section>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
  font-family: Avenir;
}

body {
  margin: 0;
}

html {
  height: 100%;
  font-size: 100%;
}

.module {
  clear: both;
}

.imgContainer, .intro {
  float: left;
}

.imgContainer {
  width: 300px;
  margin-bottom: 100px;
}

.imgContainer img {
  width: 100%;
}

.intro {
  width: 55%;
  padding-left: 20px;
}

.contact-form {
  height: 500px;
}

/* ============================================================
  PRIMARY STRUCTURE
============================================================ */
.container {
/*   max-width: 960px; */
  margin: 100px auto;
}
/* ============================================================
  SECTIONS
============================================================ */
section.module:last-child {
  margin-bottom: 0;
}
section.module h2 {
  margin-bottom: 40px;
  font-size: 30px;
}
section.module p {
  margin-bottom: 40px;
  font-size: 16px;
  font-weight: 300;
}
section.module p:last-child {
  margin-bottom: 0;
}
section.module.content {
  padding: 40px;
}
section.module.parallax {
  height: 300px;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}
section.module.parallax h1 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 3em;
  line-height: 300px;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
section.module.parallax-1 {
  background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/125980/stPauls2.jpg");
}
section.module.parallax-2 {
  background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/125980/blueprint.jpg");
}
section.module.parallax-3 {
  background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/125980/typewriter.jpg");
}

/* @media all and (min-width: 600px) {
  section.module h2 {
    font-size: 42px;
  }
  section.module p {
    font-size: 20px;
  }
  section.module.parallax h1 {
    font-size: 20px;
  }
}
@media all and (min-width: 960px) {
  section.module.parallax h1 {
    font-size: 160px;
  }
} */
              
            
!

JS

              
                
              
            
!
999px

Console