Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <!-- Esta pen  ilustra o tutorial hospedado em http://maujor.com/tutorial/propriedades-css-para-estilizacao-de-textos.php -->
<div>  
  <p class="um">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br><code>text-indent: 50px;</code></p><hr>
  <p class="dois">Morbi eleifend  Suspendisse potenti. Donec ullamcorper cursus dolor.<br><code>text-align: left;</code></p><hr>
  <p class="tres">Purus quis laoreet spendisse potenti. Donec ullamcorper cursus dolor.<br><code>text-align: center;</code></p><hr>
   <p class="quatro">Ante augue malesuada.  Suspendisse potenti. Donec ullamcorper cursus dolor morbi eleifend  Suspendisse adipiscing elit.<br><code>text-align: right;</code></p>
</div>
<div>  
  <p class="cinco">Mi, id rhoncus augue lorem eget elit. Ut sollicitudin sodales purus. Phasellus libero felis.<br><code>text-align: justify;</code></p><hr> 
  <p class="seis">imperdiet ut, nibh. Suspendisse potenti. Donec ullamcorper cursus dolor.<br><code>text-transform: capitalize;</code></p><hr> 
  
  <p class="sete">Phasellus libero felis, blandit nec, commodo ut.<br><code>text-transform: uppercase;</code></p><hr> 
  <p class="oito">Imperdiet ut, nibh. Suspendisse potenti. Donec ullamcorper cursus dolor.<br><code>text-transform: lowercase;</code></p>
</div
              
            
!

CSS

              
                div {
  float:left;
  font: 160% sans-serif;
  width: 40%;
  margin:2%;
  padding:10px 20px;
  border: 1px solid #ccc;
}
p{margin:10px 0;}
code{color:red;font-weight:700;}
.um {text-indent: 50px;}
.dois {text-align: left;}
.tres {text-align: center;}
.quatro {text-align: right;}
.cinco {text-align: justify;}
.seis {text-transform: capitalize;}
.sete {text-transform: uppercase;}
.oito {text-transform: lowercase;}
              
            
!

JS

              
                
              
            
!
999px

Console