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

              
                <link href="https://fonts.googleapis.com/css?family=Gloria+Hallelujah|Roboto&display=swap" rel="stylesheet"><div class="fichevulcain">
  <h1>Un titre ici, qui peut être long, genre 3 lignes</h1>
  <h2>Avec Hidoï crachant la Lave</h2>
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque nisl risus, posuere a condimentum id, consectetur id enim. Nulla facilisi. Integer a urna pellentesque, vulputate purus a, luctus lectus. Praesent dictum nibh a ex sollicitudin, in pharetra sapien congue. Aenean libero nulla, porta eu aliquet at, suscipit vitae arcu. Quisque euismod, lectus vel rhoncus faucibus, neque arcu venenatis enim, non hendrerit eros tellus vel felis. Quisque molestie cursus neque vitae pulvinar. Pellentesque dui dolor, tincidunt imperdiet arcu eu, molestie cursus tortor.<br /><br />Mauris nibh ligula, dapibus id mauris sed, rutrum accumsan tortor. Suspendisse elit quam, mollis eget tellus sed, dignissim lobortis nibh. Suspendisse potenti. Cras et scelerisque purus. Nulla facilisi. Sed posuere sapien vel est rutrum dapibus. Morbi sed justo vitae libero convallis maximus nec eget massa. Phasellus ac mi nec sapien egestas dignissim ut vitae velit. Cras vulputate purus nulla, eget hendrerit lorem fermentum eget. Cras vehicula volutpat nibh, quis sollicitudin odio varius eu. Nulla hendrerit, ante quis maximus dictum, ante urna suscipit tortor, ut porttitor enim justo in purus.<br /><br />Donec fermentum, sem vel gravida sollicitudin, ante ipsum eleifend mi, vel molestie nulla est eget sem. Mauris lectus lectus, consectetur eget nunc eu, malesuada iaculis sem. Cras hendrerit velit sit amet sem accumsan egestas. Vivamus sapien enim, interdum tempor dapibus et, facilisis ut quam. Pellentesque at metus sed dui maximus placerat eleifend in magna. Aliquam et leo vitae eros vestibulum auctor vel a nunc. Ut sed accumsan nunc, ac interdum arcu. Aliquam sagittis id ante et convallis. Proin id arcu metus. Praesent molestie, magna sit amet efficitur scelerisque, ipsum mi porta eros, eu facilisis lacus nulla ullamcorper erat.</p>
</div>
              
            
!

CSS

              
                *{box-sizing: border-box;}

.fichevulcain{
  width: 480px;
  border-top: 20px solid #000;
  border-bottom: 20px solid #000;
  margin: auto;
  background-image: url(https://zupimages.net/up/19/26/2puc.jpg);
  background-size: 480px;
  background-repeat: no-repeat;
}
.fichevulcain *{
  margin: 0 auto;
}
.fichevulcain h1{
  width: 300px;
  float: left;
  margin: 85px 0px 0px 20px;
  position: relative;
  z-index: 1;
  color: #fefefe;
  font: 25px Gloria Hallelujah;
  line-height: 35px;
  text-shadow: 2px 2px 0px #BD561C;
}
.fichevulcain h1:after{
  content: '';
  display: block;
  margin: auto;
  width: 120px;
  height: 2px;
  background: #FC891E;
  box-shadow: 2px 2px 0px #BD561C;
}
.fichevulcain h2{
  position: relative;
  z-index: 1;
  width: 245px;
  height: 30px;
  margin: 260px auto -10px;
  background: #FC891E;
  box-shadow: 2px 2px 0px #BD561C;
  padding: 3px 10px;
  color: #fefefe;
  font: 16px Gloria Hallelujah;
  line-height: 26px;
  text-shadow: 2px 2px 0px #BD561C;
  text-align: center;
}
.fichevulcain p{
  background: #fefefe;
  padding: 25px 20px 15px 20px;
  text-align: justify;
  font: 12px Roboto;
}
              
            
!

JS

              
                
              
            
!
999px

Console