Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="general">
  <img id="image-0" src="https://placekitten.com.s3.amazonaws.com/homepage-samples/408/287.jpg" alt="" align="middle">
  <h1>Catz in general</h1>
  
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus interdum elit eu aliquet luctus. In lacinia, libero laoreet pretium rhoncus, enim lectus viverra sapien, id laoreet dolor purus sed lacus. Aliquam quis turpis scelerisque, vulputate dolor vel, molestie metus. Suspendisse elementum egestas ante eget pellentesque. Integer eget dolor venenatis, pulvinar mi tempor, commodo urna. Nunc eros neque, pharetra id sapien vitae, porttitor sagittis nunc. Nulla egestas at tortor nec eleifend. Pellentesque et eros interdum, elementum elit vel, convallis erat. Cras maximus lorem dictum dapibus blandit. Sed in felis sit amet sem interdum sollicitudin. Etiam mauris leo, finibus sed erat vel, ornare porta tellus. Nam finibus, risus quis bibendum mollis, libero risus auctor dui, sit amet commodo libero quam a augue. Mauris quis quam nec dolor aliquet venenatis vitae non nunc. Integer luctus, lacus quis convallis vehicula, arcu metus tempus diam, ac pulvinar orci ipsum quis diam. Aenean scelerisque urna diam, ac ullamcorper nibh faucibus non.</td>
  </nav>
</div> <!-- end general -->
  <floating-box>
    <h2>cat profile 1</h2>
    <p>Aliquam scelerisque pellentesque placerat. Aliquam orci nisi, pretium id maximus ac, imperdiet nec neque. Suspendisse mi tellus, vehicula nec dapibus ac, tempor vel ligula. Suspendisse auctor posuere dapibus. Praesent congue velit a maximus aliquam. Aenean metus quam, rutrum ut varius nec, lobortis eu dui. Proin sodales luctus ligula, at laoreet orci congue vitae. Vestibulum faucibus, tellus sit amet imperdiet gravida, lorem ante eleifend lacus, a ornare magna nulla vel tellus. Praesent dolor ante, lobortis in magna in, tristique dapibus ipsum..</p>
  </floating-box>

  <floating-box>
    <h2>cat profile 2</h2>
    <p>Morbi non eros condimentum, vestibulum orci at, consectetur elit. Nam venenatis, ipsum eget molestie tempor, turpis leo volutpat dui, sit amet aliquet neque nulla ut ex. Nulla non eleifend justo. Vestibulum pellentesque ipsum sagittis orci pellentesque eleifend. Vivamus facilisis, nisi sed dignissim venenatis, nulla mauris porta ligula, in aliquet elit justo et massa. Ut tincidunt tellus ac ante scelerisque, ac egestas eros dictum. Nam ipsum nunc, congue at nulla in, sollicitudin laoreet augue. Cras fermentum porttitor pulvinar. Nunc blandit elit arcu, in posuere velit auctor in. Quisque rutrum nibh nec varius maximus. Suspendisse vel dapibus nibh.</p>
  </floating-box>

</div>
              
            
!

CSS

              
                h1 { 
    text-align: center;
    display: block;
    font-size: 1.2em;
    margin-top: 0.67em;
    margin-bottom: 0.67em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
    color: green;
}

h2 { 
    text-align: center;
    display: block;
    font-size: 1.2em;
    margin-top: 0.67em;
    margin-bottom: 0.67em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
    color: red;
}

.general {
    float: top;
    width: 75%;
    border: 3px solid purple;
    margin-top: 25px;
    margin-left: 25px;
    margin-right: 25px;
    margin: 25px auto;
    padding: 30px;
}

floating-box {
    float: left;
    width: 25%;
    height: 375px;
    border: 3px solid #73AD21;
    margin: 25px auto;
    padding: 30px;
}

img{margin: auto;}
              
            
!

JS

              
                
              
            
!
999px

Console