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

              
                p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi. Proin porttitor, orci nec nonummy molestie, enim est eleifend mi, non fermentum diam nisl sit amet erat. Duis semper. Duis arcu massa, scelerisque vitae, consequat in, pretium a, enim. Pellentesque congue. Ut in risus volutpat libero pharetra tempor. Cras vestibulum bibendum augue. Praesent egestas leo in pede. Praesent blandit odio eu enim. Pellentesque sed dui ut augue blandit sodales. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam nibh. Mauris ac mauris sed pede pellentesque fermentum. Maecenas adipiscing ante non diam sodales hendrerit.
hr.hr
p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi. Proin porttitor, orci nec nonummy molestie, enim est eleifend mi, non fermentum diam nisl sit amet erat. Duis semper. Duis arcu massa, scelerisque vitae, consequat in, pretium a, enim. Pellentesque congue. Ut in risus volutpat libero pharetra tempor. Cras vestibulum bibendum augue. Praesent egestas leo in pede. Praesent blandit odio eu enim. Pellentesque sed dui ut augue blandit sodales. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam nibh. Mauris ac mauris sed pede pellentesque fermentum. Maecenas adipiscing ante non diam sodales hendrerit.
hr.hr
svg.separator(xmlns='http://www.w3.org/2000/svg' viewbox='0 0 1280 60' display='none')
  path(d='M606 6c-10 3-22 10-37 22l-7 5-1-6c-1-8-4-14-9-18-6-4-17-2-21 4-3 4-3 8 0 11 3 5 6 6 11 6h5l-2 3c-3 7-13 11-23 9-9-2-17-5-22-9-4-4-4-5-5-10 0-4 0-5 2-7 4-3 9-3 11 0l3 6c0 5 1 5 4 5 2-1 2-2 2-6 0-6-2-10-6-13-2-2-4-2-9-2-6 0-7 0-9 3-2 2-4 5-5 9l-3 6-14-7C447 5 418 2 382 2c-23 1-58 4-67 6-10 2-21 6-37 12-10 5-22 8-24 7-1-1 1-4 3-5l5-2c3-2 4-2 4-5l-2-4c-5-2-13 3-20 11-4 5-5 6-7 5-4-1-11-4-14-7l-5-2-6 4-5 5h-90C24 26 13 27 4 31c-3 1-4 3-1 4l87 1 102 1h15l4 4 6 4 5-3c5-4 12-7 17-7 4 0 4 0 7 5 10 14 33 12 73-6 12-5 15-6 22-5h5l-2 4c-5 8-2 20 5 23h7c9-3 11-11 7-20l-3-7c0-3 8-9 14-11 8-2 18-1 28 3 9 3 10 5 4 7-14 3-19 8-19 16 0 7 7 13 13 13s13-5 13-9c-1-2-2-2-11 0-5 0-5 0-6-2 0-4 2-9 7-11 7-4 15-2 36 6 16 6 39 12 52 15 34 7 54 1 85-25 20-16 27-19 41-19 15 1 24 7 14 10-5 1-8 4-13 11-5 8-10 12-15 12-3 0-4-1-3-5 2-7-1-12-8-12-6 0-10 4-10 12 0 10 8 17 20 17 6 0 16-3 22-6l3-2 8 4 10 3 8-3 7-4 7 3c14 6 29 5 35-2s6-17 0-21c-9-5-16 1-13 11 1 4 1 4-2 4-4 0-7-1-15-10l-20-15v-2c1-3 8-6 15-6 11 0 23 6 46 23 18 14 21 16 37 22 8 3 10 3 20 3 26 0 45-4 93-22 12-4 19-4 22-1s4 7 2 11c-2 1-3 2-8 2l-6 1c0 3 3 5 9 5 12 0 19-10 12-20-3-4-7-6-14-7l-6-2 5-3c16-10 36-11 47-1l4 4-3 3-6 6c-2 4-1 11 1 14 1 3 6 6 9 6s7-2 10-5c2-3 2-4 2-12 0-9 0-9 3-9s14 4 21 8c12 6 21 9 34 11 14 2 29-2 36-10 5-4 8-4 17 1l9 4 10-4c5-3 8-4 13-5h100l91 3-4-7-8-3h-78c-96 0-105-1-115-5-8-3-11-3-15 1-5 4-11 6-14 5l-5-5c-5-7-9-9-19-9-7 0-10 1-10 4 0 2 1 2 7 1 8 0 12 1 14 5 2 3 2 5 0 6-4 1-17-2-28-6-34-12-72-18-112-18-35 0-52 3-76 14-10 5-16 7-16 6l-2-6-2-8c-3-4-9-6-14-6-5 1-9 4-11 9-3 4-2 6 2 7 2 0 3-1 5-3 3-6 5-6 8-4 5 4 6 12 2 17-2 2-12 9-16 10-15 6-32 1-35-11v-3h7c10 1 12-1 12-8 0-5-4-9-9-12-11-4-21 3-23 18l-1 5c-2 0-6-3-18-11-9-8-19-12-29-15-10-1-14-1-24 4l-8 5-3-2c-13-8-22-9-33-6zm-242 8c0 2-1 3-5 6-6 3-10 4-19 2s-23 2-49 13c-10 4-21 6-31 4-4-1-7-4-6-5l11-3 28-8c25-8 38-11 56-11h15v2zm74 0c13 2 24 6 46 18 28 15 30 15 40 15l10-1c3 0 3 2 0 3l-10 2c-18 3-36-2-78-21-13-7-27-12-40-17 0-2 22-1 32 1zm438 0l-2 3-29 12c-33 14-37 16-49 19-13 4-17 4-22 4-6-1-5-3 2-6l13-6c15-9 38-20 50-24 9-2 19-4 28-4 8 0 9 0 9 2zm70 0c12 2 29 6 46 12l24 7c11 1 14 3 11 6-3 2-9 3-13 3-5 0-13-2-31-9s-30-10-37-10c-6 0-11-2-14-5-3-4-3-6 1-5l13 1zm120 15c3 2 3 4 0 5-2 1-7 0-7-2 0-1 3-5 5-5l2 2zm-842 1v3c-2 2-6 2-8 0-3-3 4-6 8-3zm712 4c1 3-1 9-3 10-4 2-5 0-5-4s1-5 2-6c3-3 5-2 6 0zm-581 3l1 5c0 3 0 4-2 4-3 0-3-1-4-4v-6c1-2 4-1 5 1z')

              
            
!

CSS

              
                _color0 = #333           // couleur de fond
_color1 = #e91e63        // couleur dominante 1
_color2 = #b9515d        // couleur dominante 2
_color3 = #8bc34a        // couleur secondaire (@todo à définir)
_color4 = #8bc34a        // couleur secondaire (vert)
_color5 = #ffa500        // couleur secondaire (orange)
_color6 = #448aff        // couleur secondaire (bleu)
_color7 = #f8fed8        // couleur secondaire (jaune)
_colorT = #e9dac5        // couleur du texte
_colorG = _color0        // gris de référence
_colorAdd1 = #d2b48c

hr
  overflow visible // @bugfix Show the overflow @affected Edge and IE.
  box-sizing content-box // @bugfix Add the correct box sizing @affected Firefox.
  height .2em //0 // @bugfix Add the correct box sizing @affected Firefox.
  margin 2.1em auto
  color transparent // inherit // @bugfix Reset gray color. @affected Firefox.
  background-color _color1
  border none

.hr
  width 40%

.separator
  width 100%
  height 2em
  fill _color1

// for demo:

body
  height 100vh
  margin 1em
  font-family Arial
  line-height 1.5
  color _colorT
  background-color _color0

              
            
!

JS

              
                const separatorSvgForHr = (() => {
  const hrs = document.querySelectorAll('hr.hr')
  const icon = document.querySelector('.separator')
  const iconClone = icon.cloneNode(true)
  iconClone.setAttribute('role', 'separator')
  iconClone.removeAttribute('display')
  console.log(iconClone)
  for (const hr of hrs) {
    hr.insertAdjacentHTML('afterEnd', iconClone.outerHTML)
    hr.remove()
  }
})()


// https://www.cssportal.com/css-clip-path-generator/
// https://svgsilh.com/tag/divider-1.html
// "divider"
// https://svgsilh.com/image/2154993.html
// https://svgsilh.com/svg/2154993.svg

              
            
!
999px

Console