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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console