Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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 class="wrapper">
  <div class="card card--19 box-shadow">
    <div class="card__header card__header--19">
      <div class="card__watermark" data-watermark="Air"></div>
      <img src="https://i.ibb.co/q7RKcZk/nike.png" alt="Nike" class="card__logo" />
      <span class="card__price">$120</span>
      <h1 class="card__title">Air Structure 1</h1>
      <span class="card__subtitle">From the Flymesh upper to the triple-density foam midsole, the
        Nike Air Zoom Structure 19 Men's Running Shoe offers plenty of
        support and the response you need for a smooth, stable ride that
        feels ultra fast.</span>
    </div>

    <div class="card__body">
      <img src="https://i.ibb.co/R0Y8T8r/nike19.png" alt="Nike 19" class="card__image" />
      <button type="button" class="card__wish-list card__wish-list--19">Wish List</button>
      <span class="card__category">Men's running shoe</span>

    </div>
  </div>
  <div class="card card--19 drop-shadow">
    <div class="card__header card__header--19">
      <div class="card__watermark" data-watermark="Air"></div>
      <img src="https://i.ibb.co/q7RKcZk/nike.png" alt="Nike" class="card__logo" />
      <span class="card__price">$120</span>
      <h1 class="card__title">Air Structure 1</h1>
      <span class="card__subtitle">From the Flymesh upper to the triple-density foam midsole, the
        Nike Air Zoom Structure 19 Men's Running Shoe offers plenty of
        support and the response you need for a smooth, stable ride that
        feels ultra fast.</span>
    </div>

    <div class="card__body">
      <img src="https://i.ibb.co/R0Y8T8r/nike19.png" alt="Nike 19" class="card__image" />
      <button type="button" class="card__wish-list card__wish-list--19">Wish List</button>
      <span class="card__category">Men's running shoe</span>

    </div>
  </div>
</div>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Exo:wght@600&display=swap");


/* hover over card (tap on mobile) */
html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
    font-family: "Exo", Arial, sans-serif;
  background-color: #557;
  color: #fff;

  transition: background-color 0.2s;
  will-change: background-color;
}

.wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  display: block;
  margin: 2rem auto;
  width: 350px;
  background-color: #fff;
  border-radius: 15px;

  transition: all .3s;
}



.card__header {
  position: relative;
  height: 170px;
  padding: 30px 30px 300px;
  border-top-right-radius: 15px;
  border-top-left-radius: 15px;
  color: #fff;
}

.card__header--19 {
  background-color: #f72648;
  background-image: linear-gradient(#f72648, #fccb3c);
  background: #f72648;
  background: linear-gradient(#f72648, #fccb3c);
}

.card__watermark {
  overflow: hidden;
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
}

.card__watermark::after {
  content: attr(data-watermark);
  position: relative;
  left: -20px;
  color: rgba(0, 0, 0, 0.3);
  font-size: 240px;
  font-weight: 700;
  text-transform: uppercase;
}

.card__logo {
  width: 50px;
  height: auto;
}

.card__price {
  float: right;
  font-size: 16px;
  font-weight: 300;
}

.card__title {
  margin: 35px 0 20px;
  font-size: 15px;
  line-height: 1.1em;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.card__subtitle {
  display: block;
  font-size: 13px;
  font-weight: 300;
}

.card__body {
  position: relative;
  padding: 40px 30px 20px;
}

.card__image {
  z-index: 1;
  position: absolute;
  top: -290px;
  left: -30px;
  width: 125%;

  user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.card__wish-list {
  position: relative;
  display: block;
  width: 50%;
  margin: 0 auto 15px;
  padding: 15px;
  border: 2px solid #fff;
  border-radius: 20px;
  text-align: center;
  text-transform: uppercase;
  font-size: 14px;
  z-index: 5;
}

.card__wish-list--19 {
  color: #8850ff;
  border-color: #8850ff;
}

.card__wish-list--19:hover {
  background-color: #8850ff;
  color: white;
}

.card__category {
  display: block;
  font-size: 12px;
  color: #aeaeae;
  text-transform: uppercase;
  text-align: center;
}



.box-shadow {
    box-shadow: 0 0 10px rgb(250 20 0);
}

.box-shadow:hover {
  box-shadow: 0 0 15px rgb(250 20 0), 0 0 20px rgb(250 20 0);
}

.drop-shadow {
    filter: drop-shadow( 0 0 10px rgb(250 20 0));
}

.drop-shadow:hover {
  filter: drop-shadow( 0 0 15px rgb(250 20 0)),drop-shadow( 0 0 20px rgb(250 20 0));
}
              
            
!

JS

              
                
              
            
!
999px

Console