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 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


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.


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="wrapper">
  <div class="card card--19">
    <div class="card__header card__header--19">
      <div class="card__watermark" data-watermark="Air"></div>
      <img src="" 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 class="card__body">
      <img src="" 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>



                /* hover over card (tap on mobile) */
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: "Roboto", "Helvetica", sans-serif;
  transition: background-color 0.2s;
  will-change: background-color;

.wrapper {
  display: grid;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;

.card {
  display: block;
  margin: 2rem auto;
  width: 350px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.15);
  transition: box-shadow .3s;

.card:hover {
  box-shadow: 0 0 55px rgba(0, 0, 0, 0.2), 0 0 60px rgba(0, 0, 0, 0.1);

.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;