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="wrap">
  <h1>CSS3 Floating Drop Shadow</h1>
  <div class="image">
    <a href="http://www.kitfphoto.com/">
      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/66388/camera_5.jpg" alt="Floating Camera" />
  <p>This camera is quite possibly magic. Photo by <a href="http://www.kitfphoto.com/">Kit Farman</a>.</p>
              .image {
  position: relative;
  margin: 20px auto 50px;
  padding-bottom: 40px; /* Needed to make room for the shadow */
  height: 300px;
  text-align: center;
  /* Floating Shadow Pseudoelement */
  .image a:after { 
    display: block;
    position: absolute;
    left: 12%;
    bottom: 0px;
    width: 80%;
    max-width: 210px;
    height: 10px;
    background: transparent;
    border-radius: 100px/50px;
    box-shadow: 0 50px 40px rgba(0,0,0,0.5);

  .image a {
    display: block;
    position: relative;
    margin: 0 auto;
    width: 95%;
    -webkit-transition: all .2s linear;
    -moz-transition: all .2s linear;
    -ms-transition: all .2s linear;
    -o-transition: all .2s linear;
    transition: all .2s linear;

  .image a:hover,
  .image a:focus {
    width: 100%;

  img {
    height: auto;
    max-width: 100%;

/* Boring container/type styles */
* {
  -moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
.wrap {
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
  max-width: 300px;
h1, p {
  margin: 25px 0;
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.7;
  text-align: center;
h1 {
  font-size: 20px;
  font-weight: bold;
p a {
  color: #2E69BA;
  font-weight: bold;
Loading ..................