cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation


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.

              <div class="conteneur-flexbox">
<div class="box">
<p class="survol">Karl Gerstner</p>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/265602/Karl-Gerstner.jpg">
              /*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 fait 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;
Loading ..................