Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

HTML

              
                <section class="testimonial">
  <div class="inner">
      <div class="cederholm" id="quote-wrapper">
      <div class="quote">
        <blockquote id="quote-quote">We’ve been using <a href="https://www.apollowebstudio.com">Apollo Web Studio</a> here at Company Name for years. The services offered have been indispensable to our little company.</blockquote><cite id="quote-attrib">Dan Cederholm, Dribbble</cite>
      </div>
      <div class="portrait"></div>
    </div>
  </div>
</section>
              
            
!

CSS

              
                section.testimonial {
background: #F6F4EF;
}

section .inner {
max-width: 940px;
margin: 0 auto;
text-align: center;
}
section.testimonial .inner {
padding-top: 50px;
text-align: left;
}


section.testimonial #quote-wrapper {
position: relative;
min-height: 358px;
padding-top: 40px;
}

section.testimonial blockquote {
	font-family: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #666;
font-size: 28px;
line-height: 1.3em;
padding-top: 1em;
position: relative;
z-index: 1;
margin-bottom: 0.75em;
}
q, blockquote {
quotes: none;
}
section.testimonial cite {
font-size: 18px;
color: #595756;
font-weight: bold;
margin: 2em 0;
  margin-left: 38px;

}
#quote-quote a {
color: #020202;
text-decoration: none;
}
#quote-quote a:hover {
color: #020202;
text-decoration: underline;
}

section.testimonial #quote-wrapper.lisagor .portrait {
background-repeat: no-repeat;
background-image: url("http://www.getballpark.com/images/home/testimonials/lisagor.jpg");
background-size: 313px 329px;
background-position: center center;
width: 313px;
height: 329px;
}

section.testimonial #quote-wrapper.cederholm .portrait {
background-repeat: no-repeat;
background-image: url("http://www.getballpark.com/images/home/testimonials/cederholm.jpg");
background-size: 275px 305px;
background-position: center center;
width: 275px;
height: 305px;
}


section.testimonial blockquote::before {
content: "“";
color: #E0DDD7;
font-family: georgia, serif;
font-size: 6em;
position: absolute;
left: -0.25em;
top: 0.35em;
z-index: -10;
}









@media screen and (min-width: 750px){
  
section.testimonial #quote-wrapper {
padding-left: 360px;
}  
  
section.testimonial #quote-wrapper .portrait {
position: absolute;
left: 10px;
bottom: 0;
}
  
}



@media screen and (max-width: 750px){
	

section.testimonial .inner {
padding-left: 0;
}

section.testimonial .quote {
max-width: 75%;
margin: 0 auto;
margin-bottom: 20px;
}

section.testimonial .portrait {
display: block;
margin: 0 auto;
max-width: 80%;
background-size: 100% auto !important;
background-position: center bottom !important;
}
  
}











              
            
!

JS

              
                var testimonials = [{
    "name": "cederholm",
    "attribution": "John Doe, Some Company",
    "quote": "We\u2019ve been using <a href=\"https://www.apollowebstudio.com\">Apollo Web Studio</a> here at Company Name for years. The services offered have been indispensable to our little company."
}, {
    "name": "lisagor",
    "attribution": "John Doe 2, Another Company",
    "quote": "<a href=\"https://www.apollowebstudio.com\">Apollo Web Studio</a> is the web development company of the FUTURE.  The quality of work they provide for the price is just unmatched and blows the competition out of water or space in thee situation!"
}]


testimonial = testimonials[Math.floor(Math.random() * testimonials.length)];
    document.getElementById("quote-quote").innerHTML = testimonial.quote
    document.getElementById("quote-attrib").innerHTML = testimonial.attribution
    document.getElementById("quote-wrapper").className = testimonial.name


              
            
!
999px

Console