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="content" style="background-color: #3498db;">
    <h1>My summer vacation</h1>

    <p>This summer I went to Camp Smurfabunch. I was there for 2 weeks and had mega fun times. I was the fastest kayaker in the whole camp and won a first place ribbon. I learned to tie knots, dive off a pier, and lick toads.</p>

    <p>I met new friends Ketchel, Caleb, and Sarah. I hope they come visit me later this summer but even if they can't &mdash; I'll see them next summer.</p>
  </div>
  <hr class="zigzag-blu-lgreen">
  <div class="content" style="background-color: #2ecc71;">
    <p>Later that summer I got to go to Wisconsin Dells with my family. We stayed at The Wilderness which has both inside and outside water parks. My mom was scared to go down the four-person funnel ride, but she did anyway and ended up liking it.</p>

    <p>We went go karting at Mt. Zues (or something, I can't remember the name but there was an old god dude holding a lightning bolt as the logo). I beat my brother and dad on the first 2 laps but dad pulled ahead and beat me on the last lap.</p>
  </div>
  <hr class="zigzag-lgreen-green">
  <div class="content" style="background-color: #27ae60;">
    <p>The last thing I did this summer was go shopping for school clothes and supplies. I got a Trapper Keeper with KISS on it. And like fifty erasers because I make mistakes a lot lololol.</p>

    <p>I don't want to go back to school but I know once I get used to it, it will be fine again. I'd rather just go down waterslides all day.</p>
  </div>
  <img class="sun" src="http://www.freestockphotos.biz/pictures/15/15147/Illustration+of+the+sun.png" />
</div>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Open+Sans:300);

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
  color: #fff;
}

body {
  background-color: #27ae60;
}

h1 {
  text-transform: capitalize;
}

hr {
  border: none;
  height: 10px;
}
/* Credit where credit is due: http://blog.eliacontini.info/post/42743847160/notes-on-css3-box-with-zig-zag-border*/
/* You could probably make a really nice SASS mixin with this*/
.zigzag-blu-lgreen {
  /* first color: #3498db second color:; */
  background:					
    linear-gradient(-135deg, #3498db 5px, transparent 0) 0 5px,
    linear-gradient(135deg,  #3498db 5px, #2ecc71 0) 0 5px;
  background-color: #333538;
  background-position: left bottom;
  background-repeat: repeat-x;
  background-size: 10px 10px;
}

.zigzag-lgreen-green {
  background:					
    linear-gradient(-135deg, #2ecc71 5px, transparent 0) 0 5px,
    linear-gradient(135deg,  #2ecc71 5px, #27ae60 0) 0 5px;
  background-color: #333538;
  background-position: left bottom;
  background-repeat: repeat-x;
  background-size: 10px 10px;
}

p {
  text-indent: 2rem;
  padding: 0.5rem 0;
}

.content {
  padding: 2rem 0;
}

.content > * {
  width: 90%;
  margin: auto;
}

.sun { visibility: hidden }

@media screen and (min-width: 48rem) {
  .content > * {
    width: 66%;
    margin: auto;
  }
  

  
}

@media screen and (min-width: 75rem) {
  .content {
    padding: 3rem 0;
  }

  .content > p {
    font-size: 150%;
  }

  h1 {
    font-size: 300%;
  }
  
  .sun { 
    visibility: inherit;
    position: absolute;
    right: 0;
    top: 0;
    max-width: 200px;
  }
}
            
          
!
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