Pen Settings



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


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


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.


                <div class="conteneur-flexbox">
<div class="box">
<p class="survol">Karl Gerstner</p>
<img src="">


                /*pour ajouter une ombre à l'image*/
img {
	box-shadow: 5px 5px 5px grey;

/*lorsque l'on survol l'image*/
img:hover {
	opacity: 0.8;
	transition: opacity 0.9s;
	cursor: pointer;

/*LE STYLE DU TEXTE au survol*/
.survol {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 5%;
	margin: auto;
	text-align: center;
	z-index: 10;
	color: white;
	background-color: #0708a8;
	font-size: 1em;
	font-family: "Lucida Console", Courier, monospace;
	opacity: 0; /*opacity 0 car le texte ne doit pas être affiché avant le hover*/

/*lorsque l'on survol l'image on rend le texte visible avec opacity: 1*/
.box:hover .survol {
	opacity: 1; /*le texte passe à opacity 1 et devient visible*/
	transition: opacity 0.9s;

/*flexbox pour positionner l'image*/
.conteneur-flexbox {
  max-width: 300px;
  margin: 200px auto 0 auto;
  padding: 0px 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;

.box {
	position: relative;
  width: 300px;
  height: 300px;