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

              
                <ul>
  <li><a href="#textdecoration">Propriedade text-decoration</a></li>
  <li><a href="#textemphasis">Propriedade text-emphasis</a></li>
  <li><a href="#enfeitandolink">Enfeitando link</a></li>
  </ul>

<h1 id='decoration'>Propriedade text-decoration</h1>

<div>
<code>text-decoration: text-decoration-line text-decoration-color text-decoration-style text-decoration-thickness|initial|inherit;
  </code></div>

<div class='wavy'>E se o texto for pequeno.</div>

<p class="solid">O amor é uma flor roxa que nasce no coração do trouxa. Style: solid.</p>


<p class="wavy">Muita calma nessa hora. Style: wavy.</p>


<p class="double">Você deve comer frutas e legumes. Style: double.</p>


<p class="dotted">Um texto com risco dotted (pontilhado), pra variar.</p>

<p class="dashed">Por cima e por baixo. Era dashed, fica dotted se encostar.</p>

<h1 id='textemphasis'>Propriedade text-emphasis</h1>

<div><code>
  text-emphasis: text-emphasis-style text-emphasis-color.
  
  <br/><br/>text-emphasis: none|filled|open|dot|circle|double-circle|triangle|sesame|string|color|initial|inherit;
  
  <br/><br/>
  text-emphasis-position: over|under|left|right|initial|inherit
  
  </div>

<p class="filled">Aqui tem filled open-circle.</p>

<p class="dot">Aqui tem dot.</p>

<p class="opentri">Aqui tem open triangle.</p>

<p class="borboleta">Aqui tem borboleta acima.</p>
  
  <p class="abelha">Aqui tem abelha acima.</p>

<p class="loop">Aqui tem loop abaixo.</p>

<p class="double-circle">Aqui tem open double-circle.</p>

<p class="triangle">Aqui&nbsp;tem&nbsp;triangle.</p>
  
  <p class="triangulo">Emphasis funciona melhor em fonte mono.</p>
  
  <p class="sesame">Aqui tem sesame.</p>

<h1 id="enfeitandolink">Enfeitando link</h1>

<div><a class='riscado' target="_self" href="#">underline virou texto riscado</a></div>

<div><a class='flores' href="#" target="_self">Nem tem link neste link, mas enfeitei também.</a></div>
  
  <div><a class='enfatico' href="#" target="_self">Era decoration, transformei em emphasis.</a></div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Inter');

* {text-decoration-color:dodgerblue;
  text-decoration-thickness:5%; 
  text-emphasis:dodgerblue;
  text-emphasis-position:under;
  font-family:Inter, Arial; 
  color:#000033;
  text-underline-position:under;
text-decoration-skip-ink:none;}

 /* property duration timing-function delay|initial|inherit; */

body {background:#fffff0; border:2px tan dashed; margin:0; padding:10px;}

a {text-decoration:underline green solid;} 

a:hover {text-decoration:underline green wavy;} 

a:active {text-decoration:line-through red dashed;} 

code {font-family:"Courier New";}

div:has(a) {font-size:200%; padding:20px;}

div:has(code) {background:#ccc; color:#000; display:block; padding:20px; margin:20px;}

h1 {background:lightpink;padding:5px;}

p {font-size:200%; margin-bottom:30px; padding-bottom:0; padding-top:0;}

/* classes daqui para baixo */
.solid {
  text-decoration-line: underline;
  text-decoration-style: solid;
}

.wavy {
  text-decoration-line: underline;
  text-decoration-style: wavy;
}

.double {
  text-decoration-line: underline;
  text-decoration-style: double;
}

.dashed {
  text-decoration-line: overline underline;
  text-decoration-style: dashed;
}

.dotted {text-decoration-color:darkred;
  text-decoration-line: line-through;
  text-decoration-style: dotted;
  text-decoration-thickness:15%;
}

.dashed:hover {text-decoration:overline underline dotted orange;}

.filled {text-emphasis: filled double-circle dodgerblue;}

.dot {text-emphasis:dot tan;}

.opentri {text-emphasis:open triangle #000;}

.borboleta {text-emphasis:"🦋"; text-emphasis-position:over;}

.abelha {text-emphasis:"🐝"; text-emphasis-position:over; font-family:"Courier New",monospace;}

.loop {text-emphasis:"➿" #f0f; text-emphasis-position:under;}

.double-circle {
  text-emphasis: open double-circle #702963;
}

.triangle {
  text-emphasis: triangle lightpink;
}

.triangulo {font-family:monospace;
  text-emphasis: triangle chocolate;
}

.sesame {text-emphasis:sesame deeppink;}

.flores {text-decoration:none; text-emphasis:"😐"; text-emphasis-position:under;}

a.flores:hover {text-decoration:none; text-emphasis:"😂"}

.enfatico:hover {text-decoration:none; text-emphasis:"#" salmon;}

a.riscado:hover {text-decoration:line-through red 10px;}
              
            
!

JS

              
                
              
            
!
999px

Console