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="red"> Red Red Red Red  Red Red Red Red  Red Red Red Red  Red Red Red Red <br /> Red Red Red Red  Red Red Red Red  Red Red Red Red</div>
<div class="blue"> Blue Blue Blue Blue Blue Blue Blue Blue Blue Blue Blue Blue Blue Blue Blue <br />Blue Blue Blue Blue Blue Blue Blue Blue Blue Blue Blue Blue Blue</div>
<div class="green"> Green Green Green Green Green Green Green Gren Green Green Green <br /> Green Green Green Green Gren Green Green Green Green Green Green <br />Green Gren</div>

<div class="purple">Purple Purple Purple Purple Purple Purple Purple Purple Purple Purple Purple Purple Purple Purple Purple </div>

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis, praesentium incidunt obcaecati. Saepe architecto non aut ipsa expedita dolorum laborum quis a sequi quos, quod natus deleniti obcaecati, perspiciatis. Velit.</p>
<section>
  <img src="https://vetstreet-brightspot.s3.amazonaws.com/fa/19/73e1a8864e8a868b30d728f81431/most-popular-puppy-names-2016-thinkstockphotos-527135315.jpg" alt="running dog" style="width:300px; height: 200px;" />
<p>Maiores cum, asperiores animi tenetur dicta, nihil, ipsam soluta esse, labore laborum odio pariatur harum accusantium. Nulla reiciendis fugit, molestiae impedit dignissimos delectus numquam minus magnam. Neque eum, officiis magnam.</p>
<p>Corporis dolorem deleniti odit, minima, perspiciatis aspernatur eum quidem veritatis voluptatum quos eius amet, aperiam ipsam reiciendis ipsa, vitae in expedita tempore? Nisi reiciendis, labore in rem voluptate, molestias optio.</p>
<p>Omnis totam illo natus architecto voluptate at cupiditate, quibusdam sit quidem voluptatem ipsum facilis sapiente harum ab, sed nostrum nam culpa sunt blanditiis quos. Quae, aspernatur minus? Perferendis inventore, officiis.</p>
</section>
  <p>Tempora molestiae quisquam libero rerum, ullam deserunt iure corporis eligendi officia neque praesentium eveniet iste, porro magni? Dolorum numquam dolores ducimus, unde quod voluptate asperiores nisi recusandae reiciendis molestias aliquam.</p>
<p>Minima odio inventore saepe molestias voluptas aut, praesentium illo obcaecati totam numquam, esse pariatur! Labore alias placeat quaerat nesciunt, quam magni, illo odio eveniet quibusdam exercitationem adipisci doloremque esse vero.</p>
<p>Inventore aut quisquam aperiam expedita sed obcaecati perspiciatis delectus voluptatem debitis dolorum explicabo facilis cum, porro quos nesciunt in ipsam non modi! Quas, porro placeat sint non voluptate natus laborum.</p>
<p>Deleniti modi quam voluptate ea explicabo harum eum distinctio odit ad error sed non reiciendis quae tenetur magnam consequatur quasi blanditiis quibusdam tempora dignissimos animi ex, obcaecati nihil. Quisquam, porro.</p>
            
          
!
            
              .red {
  background-color: red;
  position: fixed; 
  bottom: 0px; 
  left: 100px; 
}
.blue {
  background-color: blue;
  position: fixed; 
  right: 0px; 
  top: 250px; 
}
.green {
  background-color: green;
  position: fixed; 
  left: 0px; 
  top: 250px; 
  padding-right: 30px;
}
.purple {
  background-color: purple;
  position: fixed; 
  top: 100px; 
  left: 500px; 
  z-index:2;
}
section {
  background-color: yellow;
  width: 500px;
}


img { 
  position: relative;
  bottom: 60px;
  left: 250px; 
  z-index:1;
}


            
          
!
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