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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

āš ļø This feature can only be used by logged in users.

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.

            
              <section class=testimonials>
  <div class=wrapper>
    <blockquote>
      <img src=https://staticresource.s3.amazonaws.com/prestonIcon.jpg>
      <q>77% of all millionaires made their money in real estate</q>
      <footer>bloomberg</footer>
    </blockquote>
    <blockquote>
      <img src=https://staticresource.s3.amazonaws.com/prestonIcon.jpg>
      <q>77% of all millionaires made their money in real estate</q>
      <footer>bloomberg</footer>
    </blockquote>
    <blockquote>
      <img src=https://staticresource.s3.amazonaws.com/prestonIcon.jpg>
      <q>77% of all millionaires made their money in real estate</q>
      <footer>bloomberg</footer>
    </blockquote>
    <blockquote>
      <img src=https://staticresource.s3.amazonaws.com/prestonIcon.jpg>
      <q>77% of all millionaires made their money in real estate</q>
      <footer>bloomberg</footer>
    </blockquote>
    <blockquote>
      <img src=https://staticresource.s3.amazonaws.com/prestonIcon.jpg>
      <q>77% of all millionaires made their money in real estate</q>
      <footer>bloomberg</footer>
    </blockquote>
    <blockquote>
      <img src=https://staticresource.s3.amazonaws.com/prestonIcon.jpg>
      <q>77% of all millionaires made their money in real estate</q>
      <footer>bloomberg</footer>
    </blockquote>
    <blockquote>
      <img src=https://staticresource.s3.amazonaws.com/prestonIcon.jpg>
      <q>77% of all millionaires made their money in real estate</q>
      <footer>bloomberg</footer>
    </blockquote>
    <blockquote>
      <img src=https://staticresource.s3.amazonaws.com/prestonIcon.jpg>
      <q>77% of all millionaires made their money in real estate</q>
      <footer>bloomberg</footer>
    </blockquote>
  </div>
</section>
            
          
!
            
              body {
  margin: 0;
  padding: 15px;
  background: radial-gradient(black 15%, transparent 16%) 0 0, radial-gradient(black 15%, transparent 16%) 8px 8px, radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 0 1px, radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 8px 9px;
  background-color: #282828;
  background-size: 16px 16px;
  background-attachment: fixed;
}
@element .testimonials {
  .testimonials,
  .testimonials * {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Source Sans Pro', sans-serif;
    font-kerning: auto;
  }
  $this {
    background-color: #ff3333;
    background: url('https://staticresource.s3.amazonaws.com/red-bg.jpg') no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    position: relative;
    z-index: 1000 !important;
    padding: .25em  1em .5em 1em;
    font-size: 10pt;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
    cursor: default;
    box-shadow: inset #fff 0 -1px 0;
  }
  $this:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(100%,rgba(255,255,255,1)));
    background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
    background: -o-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
    background: -ms-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00FFFFFF', endColorstr='#FFFFFFFF',GradientType=0 );
    z-index: 50;
  }
  $this .wrapper {
    max-width: 1200px;
    margin: 0 auto;
  }
  $this blockquote img {
    border-radius: 100%;
    height: auto;
    max-width: 50px;
    position: absolute;
    left: 0;
    top: 0;
  }
  $this blockquote {
    padding: .5em 1em 1em 60px;
    position: relative;
    z-index: 100;
    font-style: italic;
    min-height: 50px;
    margin: 2em auto;
  }
  $this blockquote q {
    color: #111;
    font-size: 100%;
    line-height: 1.1;
    display: block;
  }
  $this blockquote footer {
    color: #333;
    font-size: 90%;
    float: left;
    font-style: normal;
  }
  $this blockquote footer:before {
    content: 'ā€” ';
  }
  $this .wrapper:after {
    content: '';
    display: block;
    clear: both;
  }
}
@element .testimonials and (max-width: 199px) {
  $this blockquote {
    padding: 0 .25em;
    text-align: center;
  }
  $this blockquote img {
    display: block;
    position: relative;
    max-width: 50px;
    margin: 0 auto 10px auto;
  }
  $this blockquote footer {
    float: none;
    text-align: right;
  }
}
@element .testimonials and (min-width: 200px) and (max-width: 499px) {
  $this blockquote:nth-child(even) {
    padding: .5em 60px 1em 1em;
    text-align: right;
  }
  $this blockquote:nth-child(even) img {
    left: auto;
    right: 0;
  }
  $this blockquote:nth-child(even) footer {
    float: right;
  }
  $this blockquote img {
    max-width: 50px;
  }
}
@element .testimonials and (min-width: 500px) and (max-width: 799px) {
  $this {
    font-size: 12pt;
    padding: 2em;
  }
  $this blockquote {
    margin: 1em auto;
    padding: 1em 1em 0 2em;
    padding-left: 85px;
    width: 50%;
    float: left;
    min-height: none;
  }
  $this blockquote:nth-child(3n+3) {
    margin-left: 25%;
    margin-right: 25%;
  }
  $this img {
    max-width: 75px !important;
    top: auto;
  }
  $this blockquote footer {
    padding-right: 1em;
  }
}
@element .testimonials and (min-width: 800px) {
  $this {
    font-size: 14pt;
    padding: 2em 2em 0 2em;
  }
  $this blockquote {
    padding-left: 115px;
    width: 33%;
    float: left;
  }
  $this blockquote:nth-child(5n+4) {
    margin-left: 16%;
  }
  $this blockquote:nth-child(5n+5) {
    margin-right: 16%;
  }
  $this img {
    max-width: 100px !important;
  }
}
@element .testimonials and (min-width: 1200px) {
  $this {
    font-size: 16pt;
    padding: 2em 1em 0 1em;
  }
}
            
          
!
999px
šŸ•‘ One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console