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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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 Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <h1>La propriété CSS box-shadow</h1>
        
<div id="ombre1">
  <p>Une ombre projetée vers la droite et vers le bas</p>
</div>

<div id="ombre1e">
  <p>Ombre externe purple, centrée, sans flou, étalée de 10px</p>
</div>
        
<div id="ombre2e">
  <p>Ombre externe purple, projetée, avec flou, étalée de 10px</p>
</div>
        
<div id="ombre3e">
  <p>Ombre externe purple, projetée, avec flou, étalée de 10px</p>
</div> 
        
<div id="ombre4e">
  <p>Ombre externe purple, projetée, sans flou, réduite de 10px</p>
</div>
        
<div id="ombre5e">
  <p>Ombre interne centrée rouge avec un flou étalée de 10px</p>
</div>
        
<div id="ombre6e">
  <p>Ombre interne rouge, projetée, étalée de 10px</p>
</div> 
        
<div id="ombre7e">
  <p>Ombre interne rouge, projetée, réduite de 10px</p>
</div>
              
            
!

CSS

              
                div{
    border: 2px solid #777; /*Bordure de 2px*/
    width: 80%; /*Largeur des divs = 80% de la page*/
    margin: 0 auto; /*Centre nos div dans la page*/
    background-color: #fbb854; /*Fond orangé*/
    margin-bottom : 50px ;/*Marge externe basse de 50px*/
    padding: 10px; /*Marges internes de 10px*/
    box-sizing: border-box; /*Contenu + padding + border = 80%*/
}

#ombre1{
    box-shadow: 10px 10px;
}

#ombre1e{
    box-shadow: 0px 0px 0px 10px purple;
}

#ombre2e{
    box-shadow: 10px -20px 5px 10px purple; 
    color: blue;
}

#ombre3e{
    box-shadow: -20px 0px 20px 10px purple;
}

#ombre4e{
    box-shadow: 10px 15px 0px -10px purple; 
}

#ombre5e{
    box-shadow: inset 0px 0px 20px 10px red;
}

#ombre6e{
    box-shadow: inset -20px 0px 20px 10px red;
}

#ombre7e{
    box-shadow: inset 5px 15px 5px -10px red; 
}
              
            
!

JS

              
                
              
            
!
999px

Console