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

Auto Save

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="imageDiv" id="imageDiv1">
      <div class="imageDivTitle">
         <h1>Title</h1>
      </div>
  </div>

  <div class="textDiv" id="textDiv1">
    <h2 class="sectionHead">Welcome to Your Website.</h2>
    <p class="sectionText">Chillax is a cool, clean CSS library with built in parallaxing sections.   &nbsp;Simply swap in your own images and text and add and delete sections as needed.  &nbsp;Then insert our navbars, buttons, avatars and forms into our responsive 6-, 9- and 12-grid flexboxes and...  &nbsp;you're ready to go.</p>
  </div>

  <div class="imageDiv" id="imageDiv2">
      <div class="imageDivTitle">
         <h1>Title 2</h1>
      </div>
  </div>

  <div class="textDiv" id="textDiv2">
    <h2 class="sectionHead">Section Title 2</h2>
    <p class="sectionText">Here are samples of the styles built into this base library.  &nbsp;See the Chillax Library demonstration page to add a navbar, footer, grids, buttons, avatars, forms and tables.</p>
    <h1>H1 Example</h1>
    <h2>H2 Example</h2>
    <h3>H3 Example</h3>
    <h4>H4 Example</h4>
    <h5>H5 Example</h5>
    <h6>H6 Example</h6>
    <p>Paragraph example using hipster ipsum from hipsum.co: Austin ethical edison bulb church-key, kogi post-ironic bushwick. Paleo la croix mixtape ramps you probably haven't heard of them lumbersexual. Succulents vape glossier letterpress next level unicorn aesthetic try-hard cliche mustache yr. Authentic butcher normcore meh shaman hexagon swag franzen brunch pok pok blog. Vaporware thundercats roof party, +1 butcher affogato raclette dreamcatcher everyday carry 90's hella. Viral lumbersexual fingerstache quinoa air plant. Helvetica ethical tacos, hot chicken pinterest chicharrones pug succulents poke. Taxidermy celiac XOXO photo booth craft beer bushwick slow-carb DIY chicharrones vice church-key vape. Skateboard air plant glossier readymade direct trade, poutine typewriter prism try-hard you probably haven't heard of them polaroid farm-to-table man bun. </p>
    <ol>
      <li>Item 1</li>
      <li>Item 2</li>
      <li>Item 3</li>
    </ol>
    <ul>
      <li>Item 1</li>
      <li>Item 2</li>
      <li>Item 3</li>
    </ul>
    <blockquote>"Whether one is rich or poor, educated or illiterate, religious or nonbelieving, man or woman, black, white, or brown, we are all the same. Physically, emotionally, and mentally, we are all equal. We all share basic needs for food, shelter, safety, and love. We all aspire to happiness and we all shun suffering. Each of us has hopes, worries, fears, and dreams. Each of us wants the best for our family and loved ones. We all experience pain when we suffer loss and joy when we achieve what we seek. On this fundamental level, religion, ethnicity, culture, and language make no difference." <p class="quoteAuthor"> - Dalai Lama</p></blockquote>
  </div>

  <div class="imageDiv" id="imageDiv3">
      <div class="imageDivTitle">
         <h1>Title 3</h1>
      </div>
  </div>

  <div class="textDiv" id="textDiv3">
    <h2 class="sectionHead">Section Title 3</h2>
    <p class="sectionText">Chillax is a cool, simple, clean CSS library with built in parallax sections.  Simply swap in your own images and text and add and delete sections as needed. Insert buttons, avatars and forms into our responsive 6 grid flexboxes and you're ready to go.</p>

  </div>

  <div class="imageDiv" id="imageDiv4">
      <div class="imageDivTitle">
         <h1>Title 4</h1>
      </div>
  </div>

  <div class="textDiv" id="textDiv4">
    <h2 class="sectionHead">Section Title 4</h2>
    <p class="sectionText">Chillax is a cool, simple, clean CSS library with built in parallax sections.  Simply swap in your own images and text and add and delete sections as needed. Insert buttons, avatars and forms into our responsive 6 grid flexboxes and you're ready to go.</p>
  </div>

  <div class="imageDiv" id="imageDiv5">
      <div class="imageDivTitle">
         <h1>Title 5</h1>
      </div>
  </div>

  <div class="textDiv" id="textDiv5">
    <h2 class="sectionHead">Section Title 5</h2>
    <p class="sectionText">Chillax is a cool, simple, clean CSS library with built in parallax sections.  Simply swap in your own images and text and add and delete sections as needed. Insert buttons, avatars and forms into our responsive 6 grid flexboxes and you're ready to go.</p>
  </div>

  <div class="imageDiv" id="imageDiv6">
      <div class="imageDivTitle">
         <h1>Title 6</h1>
      </div>
  </div>

  <div class="textDiv" id="textDiv6">
    <h2 class="sectionHead">Section Title 6</h2>
    <p class="sectionText">Chillax is a cool, simple, clean CSS library with built in parallax sections.  Simply swap in your own images and text and add and delete sections as needed. Insert buttons, avatars and forms into our responsive 6 grid flexboxes and you're ready to go.</p>
  </div>

  <div class="imageDiv" id="imageDiv7">
      <div class="imageDivTitle">
         <h1>Title 7</h1>
      </div>
  </div>

  <div class="textDiv" id="textDiv7">
    <h2 class="sectionHead">Section Title 7</h2>
    <p class="sectionText">Chillax is a cool, simple, clean CSS library with built in parallax sections.  Simply swap in your own images and text and add and delete sections as needed. Insert buttons, avatars and forms into our responsive 6 grid flexboxes and you're ready to go.</p>
  </div>

  <div class="imageDiv" id="imageDiv8">
      <div class="imageDivTitle">
         <h1>Title 8</h1>
      </div>
  </div>

  <div class="textDiv" id="textDiv8">
    <h2 class="sectionHead">Section Title 8</h2>
    <p class="sectionText">Chillax is a cool, simple, clean CSS library with built in parallax sections.  Simply swap in your own images and text and add and delete sections as needed. Insert buttons, avatars and forms into our responsive 6 grid flexboxes and you're ready to go.</p>
  </div>

  <div class="imageDiv" id="imageDiv9">
      <div class="imageDivTitle">
         <h1>Title 9</h1>
      </div>
  </div>

  <div class="textDiv" id="textDiv9">
    <h2 class="sectionHead">Section Title 9</h2>
    <p class="sectionText">Chillax is a cool, simple, clean CSS library with built in parallax sections.  Simply swap in your own images and text and add and delete sections as needed. Insert buttons, avatars and forms into our responsive 6 grid flexboxes and you're ready to go.</p>
  </div>

  </body>


              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Amatic+SC|Barlow');

/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in
 *    IE on Windows Phone and in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers (opinionated).
 */

body {
  margin: 0;
}

/**
 * Add the correct display in IE 9-.
 */

article,
aside,
footer,
header,
nav,
section {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

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

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

/**
 * Add the correct display in IE 9-.
 * 1. Add the correct display in IE.
 */

figcaption,
figure,
main { /* 1 */
  display: block;
}

/**
 * Add the correct margin in IE 8.
 */

figure {
  margin: 1em 40px;
}

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

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

/**
 * 1. Remove the gray background on active links in IE 10.
 * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
 */

a {
  background-color: transparent; /* 1 */
  -webkit-text-decoration-skip: objects; /* 2 */
}

/**
 * 1. Remove the bottom border in Chrome 57- and Firefox 39-.
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
 */

b,
strong {
  font-weight: inherit;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font style in Android 4.3-.
 */

dfn {
  font-style: italic;
}

/**
 * Add the correct background and color in IE 9-.
 */

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

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

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

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

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

/**
 * Add the correct display in IE 9-.
 */

audio,
video {
  display: inline-block;
}

/**
 * Add the correct display in iOS 4-7.
 */

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

/**
 * Remove the border on images inside links in IE 10-.
 */

img {
  border-style: none;
}

/**
 * Hide the overflow in IE.
 */

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

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

/**
 * 1. Change the font styles in all browsers (opinionated).
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: sans-serif; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
 *    controls in Android 4.
 * 2. Correct the inability to style clickable types in iOS and Safari.
 */

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

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * 1. Add the correct display in IE 9-.
 * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

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

/**
 * Remove the default vertical scrollbar in IE.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10-.
 * 2. Remove the padding in IE 10-.
 */

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

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

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

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
 */

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

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in IE 9-.
 * 1. Add the correct display in Edge, IE, and Firefox.
 */

details, /* 1 */
menu {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Scripting
   ========================================================================== */

/**
 * Add the correct display in IE 9-.
 */

canvas {
  display: inline-block;
}

/**
 * Add the correct display in IE.
 */

template {
  display: none;
}

/* Hidden
   ========================================================================== */

/**
 * Add the correct display in IE 10-.
 */

[hidden] {
  display: none;
}

/*"CHILLAX" CSS Library stylesheet by Michele Mussatto ============================*/

body, html {
  height: 100%;
  margin: 0;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: #5D5046;
  }
h1, h2, h3, h4, h5, h6, p {
/*These settings are borrowed from the reset.css stylesheet,
http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 License: none (public domain)*/
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
h1 {
  font-family: 'Amatic SC', cursive;
  font-size: 120px;
}
h2 {
  font-family: 'Amatic SC', cursive;
  font-size: 45px;
}
h3 {
  font-family: 'Amatic SC', cursive;
  font-size: 35px;
}
h4 {
  font-family: 'Amatic SC', cursive;
  font-size: 28px;
}
h5 {
  font-family: 'Amatic SC', cursive;
  font-size: 22px;
}
h6 {
  font-family: 'Amatic SC', cursive;
  font-size: 18px;
}
p, li {
  line-height: 1.5;
}
blockquote {
  font-size: 22px;
  line-height: 1.2;
  text-align: justify;
  margin: 0px 250px;
  padding-bottom: 40px;
}
.quoteAuthor {
  font-family: 'Amatic SC', cursive;
  font-size: 28px;
  text-align: right;
  font-style: italic;
  font-weight: bold;
  background: #9E9E9E;
  opacity: 0.8;
  color: white;
  padding-right: 10px;
  margin-top: 15px;
}
a {
  color: white;
  text-decoration: none;
  text-transform: uppercase;
}
a:hover {
  color: black;
  opacity: .5;
}
.imageDivTitle {
  color: white;
  text-shadow: 0px 0px 20px black;
  left: 0;
  position:absolute;
  text-align:center;
  top: 47%;
  width: 100%
}
.imageDiv {
  height: 600px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
#imageDiv1 {
  /*NOTE: Replace background color with background image.*/
  /*background-image: url("images/woman_on_pier.jpg");*/
  background: #c9a775;
  height: 725px;
}
#imageDiv2 {
  position: relative;
  /*NOTE: Replace background color with background image.*/
  /*background-image: url("images/bicycle.jpg");*/
  background: #98b9d6;
}
#imageDiv3 {
  position: relative;
  /*NOTE: Replace background color with background image.*/
  /*background-image: url("images/web_design.jpg");*/
  background: #c9a775;
}
#imageDiv4 {
  position: relative;
  /*NOTE: Replace background color with background image.*/
  /*background-image: url("images/lake.jpg");*/
  background: #98b9d6;
}
#imageDiv5 {
  position: relative;
  /*NOTE: Replace background color with background image.*/
  /*background-image: url("images/plane.jpg");*/
  background: #c9a775;
}
#imageDiv6 {
  position: relative;
  /*NOTE: Replace background color with background image.*/
  /*background-image: url("images/coding.jpg");*/
  background: #98b9d6;
}
#imageDiv7 {
  position: relative;
  /*NOTE: Replace background color with background image.*/
  /*background-image: url("images/beach.jpg");*/
  background: #c9a775;
}
#imageDiv8 {
  position: relative;
  /*NOTE: Replace background color with background image.*/
  /*background-image: url("images/snow.jpg");*/
  background: #98b9d6;
}
#imageDiv9 {
  position: relative;
  /*NOTE: Replace background color with background image.*/
  /*background-image: url("images/meditate.jpg");*/
  background: #c9a775;
}
.textDiv {
  margin: 40px;
}
.sectionHead {
  text-align: center;
  padding-bottom: 40px;
}
.sectionText {
  font-size: 18px;
  line-height: 1.2;
  text-align: justify;
  margin: 0px 100px;
  padding-bottom: 40px;
}

              
            
!

JS

              
                
              
            
!
999px

Console