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

              
                <div><!-- dans cette div ne sera pas modifier, les valeurs par defaut seront donc visibles-->
	<h1>Titre</h1>
	<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ea perferendis ex veritatis, et quas rerum! Consequatur molestiae enim a fuga cupiditate corrupti magni ullam ipsum alias! Cupiditate autem ut minus!</p>
</div>
<div class="modif">
	<h1>Titre</h1>
	<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Placeat quidem fuga iure officiis, voluptate voluptatem suscipit non! Suscipit velit alias est eaque molestias, cupiditate nobis amet fugit. Non, nisi fugit.</p>
</div>

<!-- Dans cette section je vais tester les pricipe de l'unité em -->
<div class="block">
	<h1>Titre em</h1>
		<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sequi magnam tenetur ut hic sit deserunt eius soluta optio! Asperiores, fugit cum esse, vitae quae sed veniam deserunt minima iure </p>
</div>
<div class="block">
	<div class="text">
	<h1>Titre em</h1>
		<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sequi magnam tenetur ut hic sit deserunt eius soluta optio! Asperiores, fugit cum esse, vitae quae sed veniam deserunt minima iure </p>
	
	</div>
</div>

<!-- Attention aux cascades-->

<div class="block">
	<div class="text">
	<h1>Titre em</h1>
		<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sequi magnam tenetur ut hic sit deserunt eius soluta optio! Asperiores, fugit cum esse, vitae quae sed veniam deserunt minima iure </p>
		<div class="text2">
	<h1>Titre em</h1>
		<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sequi magnam tenetur ut hic sit deserunt eius soluta optio! Asperiores, fugit cum esse, vitae quae sed veniam deserunt minima iure </p>
	
	</div>
	</div>
</div>
              
            
!

CSS

              
                .modif h1{
	font-size: 32px;
}

.modif p{
	font-size: 16px;
}
/*Dans cette section je vais tester les pricipe de l'unité em*/

.block{/* la classe block est un élément parent du texte qui va suivre*/ 
		/*On fixe une valeur de heuteur de texte par defaut pourla heuteur du texte*/
	font-size: 14px;
}

.text{
	font-size: 1.5em;
}

.text2{
	font-size: 1.2em;
}
/*Attention aux cascades*/
              
            
!

JS

              
                
              
            
!
999px

Console