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

              
                <h1>The clear Property</h1>

<h2>Clearing left</h2>

<div class="border">
  <img class="fl" src="https://66.media.tumblr.com/avatar_24f9df58c75d_128.pnj">
  <p>This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.</p>
  <p class="clear-left">This is also some text. This is also some text. This is also some text. This is also some text. This is also some text. This is also some text.</p>
  <p><strong>Remove the "clear-left" class to see the issue we're fixing with the "clear-left" class.</strong></p>
</div>

<h2>Clearing right</h2>

<div class="border">
  <img class="fr" src="https://66.media.tumblr.com/avatar_24f9df58c75d_128.pnj">
  <p>This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.</p>
  <p class="clear-right">This is also some text. This is also some text. This is also some text. This is also some text. This is also some text. This is also some text.</p>
  <p><strong>Remove the "clear-right" class to see the issue we're fixing with the "clear-right" class.</strong></p>
</div>


<h2>Clearing both</h2>

<div class="border">
  <img class="fl" src="https://66.media.tumblr.com/avatar_24f9df58c75d_128.pnj">
  <p>This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.</p>
  <p class="clear-both">This is also some text. This is also some text. This is also some text. This is also some text. This is also some text. This is also some text.</p>
  <p><strong>Remove the "clear-both" class to see the issue we're fixing with the "clear-both" class.</strong></p>
</div>
              
            
!

CSS

              
                .border { border: 1px solid gray }
.fl { float: left }
.fr { float: right }
.clear-left { clear: left }
.clear-right { clear: right }
.clear-both { clear: both }

/*
Conclusions:
Property Values
Value	Description
none	Default. Allows floating elements on both sides
left	No floating elements allowed on the left side
right	No floating elements allowed on the right side
both	No floating elements allowed on either the left or the right side
*/

              
            
!

JS

              
                
              
            
!
999px

Console