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

              
                
<base target="_blank">
<h1>Tentando descobrir a diferença entre border e outline.</h1>

<div><code>outline: outline-width outline-style outline-color|initial|inherit;</code></div>

<div><code>outline-offset: length|initial|inherit;</code></div>

<div><code>border: border-width border-style border-color|initial|inherit;</code></div>

<div class='outline-groove'>Amanhã tenho aula de espanhol. Aqui tem <mark>outline groove</mark>.</div>

<div class='border-groove'>Domingo é dia de ônibus gratuito. Aqui tem <mark>border groove</mark>.</div>

<div class='border-groove outline-groove'>Segunda é dia de trabalhar. Aqui tem <mark>border e outline groove</mark>.</div>

<div class='border-ridge'>Eu gosto de dormir. Aqui tem <mark>border ridge</mark>.</div>

<div class='border-inset'>Eu gosto de pedalar, mas gosto mais de dormir. Aqui tem <mark>border inset</mark>.</div>

<div class='border-outset'>Nunca usei meus patins aqui em Brasília. Aqui tem <mark>border outset</mark>.</div>

<div class='outline-inset'>Não gosto de ir a Goiânia. Aqui tem <mark>outline inset</mark>.</div>


<div class='outline-outset'>Quero me aposentar logo. Aqui tem <mark>outline outset</mark>.</div>

<div class='border-dashed outline-dashed'>Estou com saudades da praia. Aqui tem <mark>border e outline dashed</mark>.</div>


<div class='border-dotted outline-dotted'>Quando eu era criança, queria ir para o Japão. Aqui tem <mark>border e outline dotted</mark>.</div>

<div class='double'>Consegui deixar com quatro linhas? Aqui tem <mark>border e outline double</mark>. Precisei usar <samp>outline-offset</samp> para a <samp>border</samp> não ficar grudada na <samp>outline</samp>.</div>

<div class='mistura'>Misturando um pouco as coisas. Aqui tem <mark>border dotted</mark> e <mark>outline solid</mark>.</div>

<div class='mistura'>Aqui tem <mark>border dotted</mark> e <mark>outline solid</mark>, mas posso inverter as coisas.</div>

<p>Experimento com <a class='borda' href="https://www.meutedio.com">link que tem borda</a>.</p>

<p>Experimento com <a class='contorno' href="https://www.meutedio.com">link que tem contorno</a>.</p>


  
              
            
!

CSS

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

* {font-family:Inter; transition:0.2s; text-underline-position:under;}

body {background:#fff; color:#000; border:3px tan dashed; outline:3px chocolate dashed; outline-offset:2px; margin:10px; padding:30px;}

h1 {padding:10px;color:#cc00aa; font-family:Delius;text-align:center;background-color:#fff5ee;border-inline:10px dotted pink;}

/* personalização dos links - início */
a {text-decoration:underline dodgerblue solid;} 

a:hover {text-decoration:none; }

a:active {text-decoration:line-through red solid 5px; border:2px dotted white; outline:2px dotted white;} 

a.borda:hover {border:5px dotted pink;}
a.contorno:hover {outline:5px dotted pink;}

/* personalização dos links - fim */

code, samp {font-family:"Courier New",monospace;}

div {margin:50px;margin-left:0;margin-right:0;padding:10px;}

div:has(code) {background:linen; padding:20px;margin:50px;}

.border-groove {border:7px groove #ffa07a;}

.outline-groove {outline:7px groove #ffa07a;}

.border-ridge {border:7px ridge lightpink;}

.border-inset {border:7px inset lightpink;}

.border-outset {border:7px outset lightpink;}

.outline-inset {outline:7px inset lightgreen;}

.outline-outset {outline:7px outset lightgreen;}

.border-dashed {border:3px dashed #cc00cc;}

.outline-dashed {outline:3px dashed #cc00cc;}

.border-dotted {border:3px dotted #7b68ee;}

.outline-dotted {outline:3px dotted #7b68ee;}

.double {outline:5px double purple; outline-offset:2px; border:5px double green;margin:10px;}

.mistura {border-inline:10px dotted #99cc66; border-block:10px dotted #99bb66; outline:5px double pink; outline-offset:2px;}

.mistura:hover {border-inline:10px double #99cc66; border-block:10px double #99bb66; outline:5px dotted pink;}


              
            
!

JS

              
                
              
            
!
999px

Console