cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

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.

            
              <div class="image">
	<div class="contents">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Officiis ipsa aspernatur, necessitatibus dolores neque. Quis nulla iusto architecto ipsam consequatur fugit sunt odio cum placeat, incidunt sint minima illum. Perferendis quas modi beatae eum voluptatum atque explicabo, rerum ex illum non quam alias officia vel nemo. Explicabo natus nesciunt nostrum vero iste, sint sapiente. Hic iste, accusantium consequuntur ut numquam ullam, in vero accusamus quibusdam expedita alias saepe rem facilis natus magnam ratione animi reiciendis dicta ipsum magni architecto voluptatibus dignissimos veniam deleniti repudiandae. Accusantium delectus sapiente, dicta vitae laborum, esse provident quia minus accusamus ipsam autem voluptatum voluptatem! Vel?</div>
</div>
            
          
!
            
              .body
	min-width: 1100px
.contents
	color: white
	width: 100px
	margin: auto

.image
	background-image: url(http://better-than-i-was-yesterday.com/wp-content/uploads/2017/02/StockSnap_WMBB30NTZK.jpg)
	background-repeat: no-repeat
	background-size: cover
	background-position: center center
            
          
!
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