cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

            
              <section>
  <h1>What is Lorem Ipsum?</h1>
  <ul>
    <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</li>
    <li>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</li>
    <li>It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</li>
  </ul>
</section>
<section>
  <h1>Where does it come from?</h1>
  <ul>
    <img src='https://farm4.staticflickr.com/3602/3360019237_2d0a99d61e_q_d.jpg'></img>
  <li>Contrary to popular belief, Lorem Ipsum is not simply random text.</li>
  <li>It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.</li>
  <li>Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.</li>
  </ul>
</section>
<section>
  <h1>Why do we use it?</h1>
  <ul>
    <li>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.</li>
    <li>The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English.</li>
    <li>Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy.</li>
  </ul>
</section>
<section>
  <h1>Where can I get some?</h1>
  <img src='https://farm4.staticflickr.com/3222/2744225714_f21f78cacd_q_d.jpg'></img>
  <ul>
    <li>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable.</li>
    <li>If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text.</li>
  </ul>
</section>

            
          
!
            
              
html {
  font-family: sans-serif;
  font-size: 18px;
  line-height: 2rem;
  color: white;
}

section {
  width: 640px;
  height: 480px;
  padding: 1rem;
  margin: 12px;
  box-shadow: 0 0 4px black;
  box-sizing: border-box;
}

section:nth-of-type(1) {
  background-color: tomato; 
}
section:nth-of-type(2) {
  background-color: royalblue; 
}
section:nth-of-type(3) {
  background-color: gold; 
}
section:nth-of-type(4) {
  background-color: forestgreen; 
}

img {
  float: right;
  margin: 0 0 .5rem .5rem;
}

h1 {
  text-align: center;
  font-size: 2rem;
  text-shadow: 0 0 8px black;
  margin-bottom: 1rem;
}

li {
  text-align: justify;
  text-shadow: 1px 1px 1px rgba(0,0,0,.5);
}


@media print {
  @page {
    size: 640px 480px;
    margin: 0;
  }

  * {
    -webkit-print-color-adjust: exact;
  }

  body {
    margin: 0;
    padding: 0;
  }

  section {
    margin: 0;
    box-shadow: none;
    page-break-before: always;
  }
}

            
          
!
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