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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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

              
                <html>
	<head>
	<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
	
	</head>
	<body>
		<!-- CONSTRUIRE DES BLOCS POUR LES PETITS ECRANS-->
	<div class="container-fluid">
		<h5>CONSTRUIRE DES BLOCS POUR LES PETITS ECRANS</h5>
		<div class="row">
			<div class="col-xs-3 rouge">
			</div>
			<div class="col-xs-5 bleu">
			</div>
		</div>
		
		<!-- Attention la casse-->
		<div class="row bloc">
			<div class="col-md-3 rouge">
			</div>
			<div class="col-md-5 bleu">
			</div>
		</div>
		
		<div class="row bloc">
			<div class="col-xs-12 rouge">
			</div>
			<div class="col-xs-12 bleu">
			</div>
		</div>
		<!-- FIN CONSTRUIRE DES BLOCS POUR LES PETITS ECRANS-->

		<!-- GERER DIFFERENTE TAILLE D'ECRANS-->
		<h5>GERER DIFFERENTE TAILLE D'ECRANS</h5>
		<div class="row bloc">
			<div class="col-xs-12 rouge col-sm-8 col-md-4">
			</div>
			<div class="col-xs-12 bleu col-sm-4 col-md-8">
			</div>
		</div>
		
		<!-- FIN GERER DIFFERENTE TAILLE D'ECRANS-->
	
		<!-- VISIBLE ET HIDDEN -->
		<h5>VISIBLE ET HIDDEN</h5>
		<div class="row bloc">
			<div class="col-xs-12 col-sm-3 hidden-lg hidden-md rouge">
			</div>
			<div class="col-xs-12 col-sm-3 col-md-6 bleu">
			</div>
			<div class="col-xs-12 col-sm-3 hidden-md col-lg-2 vert">
			</div>
			<div class="col-xs-12 col-sm-3 col-md-4 jaune">
			</div>
			</div>
		<!-- FIN VISIBLE ET HIDDEN-->
		
		<!-- UN WRAP -->
		<h5>UN WRAP</h5>
		<div class="row bloc">
			<div class="col-md-5 rouge">
			</div>
			<div class="col-md-5 jaune">
			</div>
			<div class="col-md-3 bleu">
			</div>
		</div>
		<!-- FIN UN WRAP-->
		
		<!-- DECALAGE DE COLONNE -->
		<h5>DECALAGE DE COLONNE</h5>
		<div class="row bloc">
			<div class="col-md-offset-4 col-md-2 rouge">
				<p>Décalage de 4 colonnes vers la droite</p>
			</div>
			<div class="col-md-5 jaune">
				<p>Tiens je me décale aussi, pourtant j'ai rien demandé!</p>
			</div>
		</div>
	<div class="row bloc">
			<div class="col-md-offset-4 col-md-2 rouge">
				<p>Décalage de 4 colonnes vers la droite</p>
			</div>
			<div class="col-md-offset-4 col-md-5 jaune">
				<p>Aller Ok je me décalle aussi</p>
			</div>
		</div>
		<!-- FIN DECALAGE DE COLONNE -->

		<!-- L'IMBRICAION-->
		
		<div class="row bloc"> <!-- Ligne principale-->
			<div class=" col-lg-7 col-md-6 violet">
				<p>Je suis dans le violet</p>
				<div class="row"> <!-- Ligne secondaire-->
					<div class="col-md-6 visible-lg vert">
					</div>
					<div class="col-md-6 visible-lg bleu">
					</div>
				</div> <!-- Fin ligne secondaire-->
					<p>Je suis toujours dans le violet</p>

			</div>
			<div class=" col-lg-5 col-md-6 jaune">
			</div>
		</div><!-- Fin ligne principale-->
		<!-- FIN L'IMBRICATION-->
		
		
		
		
		
	</div>	
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
	</body>
</html>
              
            
!

CSS

              
                .rouge{
	height:100px;
	background-color:red;
}

.bleu{
	height:100px;
	background-color:blue;
}

.vert{
	height:100px;
	background-color:green;
}

.jaune{
	height:100px;
	background-color:yellow;
}

.bloc{
	margin-top:2em;
}

.violet{
	height:200px;
	background-color:purple;
}
              
            
!

JS

              
                
              
            
!
999px

Console