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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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

              
                <body>
<div class="grid-container">
<div class="headline">
  <h1>10,000+ of our users love our products.</h1> 
  </div>
  <div class="headline-text"
  <p>We only provide great products combined with excellent customer service. See what our satisfied customers are saying about our services.</p>
</div>


<div class="ratings" id="reviews">
  <div class="stars">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAmBAMAAABALxQTAAAAFVBMVEVMaXH4twP4twP4twP4twP4twP4twP7w8S/AAAAB3RSTlMAFv5uPpvQloUsTQAAAMFJREFUeAGE0TEOgzAMQFEXoDNiYC6/wFxxAsTADDkB5f6HqNRENXUi8TYiRfnY8lNXkjBOkuBWSeAhsYJOYiW9xO4MEqshkTbCSyIH7GLdgFasHHgmwkikZQD6OROZRG4Hxju8o/TNhbNhCqkOxaZDVKdxNnq/EjUS/A2o0PuXpyVeb9bjDWY9QSWXDQfBbtbjtWY9bM4sqfx+5yYt8wNcAFEzrGGkk5668KsFrKewPtQ3aFqh8WOnYZ+lIBQkgykAWk8rlAqcHfQAAAAASUVORK5CYII=">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAmBAMAAABALxQTAAAAFVBMVEVMaXH4twP4twP4twP4twP4twP4twP7w8S/AAAAB3RSTlMAFv5uPpvQloUsTQAAAMFJREFUeAGE0TEOgzAMQFEXoDNiYC6/wFxxAsTADDkB5f6HqNRENXUi8TYiRfnY8lNXkjBOkuBWSeAhsYJOYiW9xO4MEqshkTbCSyIH7GLdgFasHHgmwkikZQD6OROZRG4Hxju8o/TNhbNhCqkOxaZDVKdxNnq/EjUS/A2o0PuXpyVeb9bjDWY9QSWXDQfBbtbjtWY9bM4sqfx+5yYt8wNcAFEzrGGkk5668KsFrKewPtQ3aFqh8WOnYZ+lIBQkgykAWk8rlAqcHfQAAAAASUVORK5CYII=">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAmBAMAAABALxQTAAAAFVBMVEVMaXH4twP4twP4twP4twP4twP4twP7w8S/AAAAB3RSTlMAFv5uPpvQloUsTQAAAMFJREFUeAGE0TEOgzAMQFEXoDNiYC6/wFxxAsTADDkB5f6HqNRENXUi8TYiRfnY8lNXkjBOkuBWSeAhsYJOYiW9xO4MEqshkTbCSyIH7GLdgFasHHgmwkikZQD6OROZRG4Hxju8o/TNhbNhCqkOxaZDVKdxNnq/EjUS/A2o0PuXpyVeb9bjDWY9QSWXDQfBbtbjtWY9bM4sqfx+5yYt8wNcAFEzrGGkk5668KsFrKewPtQ3aFqh8WOnYZ+lIBQkgykAWk8rlAqcHfQAAAAASUVORK5CYII=">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAmBAMAAABALxQTAAAAFVBMVEVMaXH4twP4twP4twP4twP4twP4twP7w8S/AAAAB3RSTlMAFv5uPpvQloUsTQAAAMFJREFUeAGE0TEOgzAMQFEXoDNiYC6/wFxxAsTADDkB5f6HqNRENXUi8TYiRfnY8lNXkjBOkuBWSeAhsYJOYiW9xO4MEqshkTbCSyIH7GLdgFasHHgmwkikZQD6OROZRG4Hxju8o/TNhbNhCqkOxaZDVKdxNnq/EjUS/A2o0PuXpyVeb9bjDWY9QSWXDQfBbtbjtWY9bM4sqfx+5yYt8wNcAFEzrGGkk5668KsFrKewPtQ3aFqh8WOnYZ+lIBQkgykAWk8rlAqcHfQAAAAASUVORK5CYII=">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAmBAMAAABALxQTAAAAFVBMVEVMaXH4twP4twP4twP4twP4twP4twP7w8S/AAAAB3RSTlMAFv5uPpvQloUsTQAAAMFJREFUeAGE0TEOgzAMQFEXoDNiYC6/wFxxAsTADDkB5f6HqNRENXUi8TYiRfnY8lNXkjBOkuBWSeAhsYJOYiW9xO4MEqshkTbCSyIH7GLdgFasHHgmwkikZQD6OROZRG4Hxju8o/TNhbNhCqkOxaZDVKdxNnq/EjUS/A2o0PuXpyVeb9bjDWY9QSWXDQfBbtbjtWY9bM4sqfx+5yYt8wNcAFEzrGGkk5668KsFrKewPtQ3aFqh8WOnYZ+lIBQkgykAWk8rlAqcHfQAAAAASUVORK5CYII="></div>
<p>Rated 5 Stars in Reviews</p>
</div>

<div class="ratings" id="report-guru">
    <div class="stars">

<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAmBAMAAABALxQTAAAAFVBMVEVMaXH4twP4twP4twP4twP4twP4twP7w8S/AAAAB3RSTlMAFv5uPpvQloUsTQAAAMFJREFUeAGE0TEOgzAMQFEXoDNiYC6/wFxxAsTADDkB5f6HqNRENXUi8TYiRfnY8lNXkjBOkuBWSeAhsYJOYiW9xO4MEqshkTbCSyIH7GLdgFasHHgmwkikZQD6OROZRG4Hxju8o/TNhbNhCqkOxaZDVKdxNnq/EjUS/A2o0PuXpyVeb9bjDWY9QSWXDQfBbtbjtWY9bM4sqfx+5yYt8wNcAFEzrGGkk5668KsFrKewPtQ3aFqh8WOnYZ+lIBQkgykAWk8rlAqcHfQAAAAASUVORK5CYII=">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAmBAMAAABALxQTAAAAFVBMVEVMaXH4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btbjtWY9bM4sqfx+5yYt8wNcAFEzrGGkk5668KsFrKewPtQ3aFqh8WOnYZ+lIBQkgykAWk8rlAqcHfQAAAAASUVORK5CYII=">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAmBAMAAABALxQTAAAAFVBMVEVMaXH4twP4twP4twP4twP4twP4twP7w8S/AAAAB3RSTlMAFv5uPpvQloUsTQAAAMFJREFUeAGE0TEOgzAMQFEXoDNiYC6/wFxxAsTADDkB5f6HqNRENXUi8TYiRfnY8lNXkjBOkuBWSeAhsYJOYiW9xO4MEqshkTbCSyIH7GLdgFasHHgmwkikZQD6OROZRG4Hxju8o/TNhbNhCqkOxaZDVKdxNnq/EjUS/A2o0PuXpyVeb9bjDWY9QSWXDQfBbtbjtWY9bM4sqfx+5yYt8wNcAFEzrGGkk5668KsFrKewPtQ3aFqh8WOnYZ+lIBQkgykAWk8rlAqcHfQAAAAASUVORK5CYII="></div>
<p>Rated 5 Stars in Report Guru</p>
</div>

<div class="ratings" id="besttech">
    <div class="stars">

<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAmBAMAAABALxQTAAAAFVBMVEVMaXH4twP4twP4twP4twP4twP4twP7w8S/AAAAB3RSTlMAFv5uPpvQloUsTQAAAMFJREFUeAGE0TEOgzAMQFEXoDNiYC6/wFxxAsTADDkB5f6HqNRENXUi8TYiRfnY8lNXkjBOkuBWSeAhsYJOYiW9xO4MEqshkTbCSyIH7GLdgFasHHgmwkikZQD6OROZRG4Hxju8o/TNhbNhCqkOxaZDVKdxNnq/EjUS/A2o0PuXpyVeb9bjDWY9QSWXDQfBbtbjtWY9bM4sqfx+5yYt8wNcAFEzrGGkk5668KsFrKewPtQ3aFqh8WOnYZ+lIBQkgykAWk8rlAqcHfQAAAAASUVORK5CYII=">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAmBAMAAABALxQTAAAAFVBMVEVMaXH4twP4twP4twP4twP4twP4twP7w8S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wNcAFEzrGGkk5668KsFrKewPtQ3aFqh8WOnYZ+lIBQkgykAWk8rlAqcHfQAAAAASUVORK5CYII=">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAmBAMAAABALxQTAAAAFVBMVEVMaXH4twP4twP4twP4twP4twP4twP7w8S/AAAAB3RSTlMAFv5uPpvQloUsTQAAAMFJREFUeAGE0TEOgzAMQFEXoDNiYC6/wFxxAsTADDkB5f6HqNRENXUi8TYiRfnY8lNXkjBOkuBWSeAhsYJOYiW9xO4MEqshkTbCSyIH7GLdgFasHHgmwkikZQD6OROZRG4Hxju8o/TNhbNhCqkOxaZDVKdxNnq/EjUS/A2o0PuXpyVeb9bjDWY9QSWXDQfBbtbjtWY9bM4sqfx+5yYt8wNcAFEzrGGkk5668KsFrKewPtQ3aFqh8WOnYZ+lIBQkgykAWk8rlAqcHfQAAAAASUVORK5CYII="></div>
<p>Rated 5 Stars in BestTech</p>
</div>





<div class="purple-card" id="card1">
  <div class="card-heading">
  <img src="https://lh3.googleusercontent.com/ogw/ADea4I7ruBFHvLCj6eXXmieVP-VpFF4q9RgW_VS6cQmddQ=s32-c-mo" alt="profile icon image">
    <div class="name-title">
  <p class="name">Colton Smith</p>
  <p class="title">Verified Buyer</p>
    </div>
  </div>
    <p class="body-text">"We needed the same printed design as the one we had ordered a week prior. Not only did they find the original order, but we also received it in time. Excellent!"</p>
</div>

<div class="purple-card" id="card2">
  <div class="card-heading">
  <img src="https://lh3.googleusercontent.com/ogw/ADea4I7ruBFHvLCj6eXXmieVP-VpFF4q9RgW_VS6cQmddQ=s32-c-mo" alt="profile icon image">
    <div class="name-title">
  <p class="name">Irene Roberts</p>
  <p class="title">Verified Buyer</p>
    </div>
  </div>
  <p class="body-text">"Customer service is always excellent and very quick turn around. Completely delighted with the simplicity of the purchase and the speed of delivery."</p>
</div>


<div class="purple-card" id="card3">
  <div class="card-heading">
  <img src="https://lh3.googleusercontent.com/ogw/ADea4I7ruBFHvLCj6eXXmieVP-VpFF4q9RgW_VS6cQmddQ=s32-c-mo" alt="profile icon image">
    <div class="name-title">
  <p class="name">Anne Wallace</p>
  <p class="title">Verified Buyer</p>
    </div>
  </div>
  <p class="body-text">"Put an order with this company and can only praise them for the very high standard. Will definitely use them again and recommend them to everyone!"</p>
</div>
</div>
</body>
              
            
!

CSS

              
                * {
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background-color: #f0ead6;
  display: grid;
  place-items: center;
}

h1 {
  color: #702963;
  font-family: Arial, sans serif;
  padding-bottom: 10px;
  font-size: 2.5em;
}

.headline {
  grid-column: 1/2;
  justify-self: end;
  width: 75%;
}

.headline-text {
  grid-column: 1/2;
  width: 75%;
  justify-self: end;
}

.headline > p {
  color: gray;
  font-family: Arial, sans serif;
  line-height: 1.5;
}

#reviews {
  grid-column: 3/4;
  grid-row: 1;
  justify-self: start;
  align-self: end;
  margin-left: -10em;
}

#report-guru {
  grid-column: 3/4;
  justify-self: start;
  margin-left: -5em;
  align-self: center;
}

#besttech {
  grid-column: 3/4;
  justify-self: start;
  align-self: start;
}

.ratings {
  display: flex;
  align-items: center;
  background-color: lavender;
  border: solid;
  padding: 0 20px;
  font-family: Arial, sans serif;
  color: #702963;
  font-weight: 700;
  width: 75%;
}

.purple-card {
  background-color: #702963;
  border-radius: 10px;
  border: solid;
  padding: 20px;
  height: fit-content;
  width: 75%;
}

.purple-card > p:last-child {
  line-height: 1.5;
}

.card-heading {
  display: flex;
  align-items: start;
}

img {
  max-width: 18%;
  padding: 10px;
}

.name-title {
  padding: 5px;
}

.name {
  color: white;
}

.title {
  color: #bf40bf;
}

.body-text {
  padding: 10px;
  color: white;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
}

#card1 {
  grid-column: 1/2;
  margin-top: 3em;
  justify-self: end;
}

#card2 {
  grid-column: 2/3;
  margin-top: 6em;
  justify-self: center;
}

#card3 {
  grid-column: 3/4;
  margin-top: 9em;
  justify-self: start;
}


@media (max-width: 1800px) {
  * {
    margin: 0;
    padding: 0;
  }
  
  .grid-container {
    margin: 0;
    width: 90%;
  }
  
  .headline {
    grid-column: 1/3;
    margin: 0;
    justify-self: start;
  }
  
  .headline-text {
    grid-column: 1/3;
    justify-self: start;
  }
  
  #reviews {
    grid-column: 2/4;
    grid-row: 3;
    margin: 0;
  }
  
  #report-guru {
    grid-column: 2/4;
    margin: 0;
  }
  
  #besttech {
    grid-column: 2/4;
    margin: 0;
  }
  
  #card1 {
    grid-column: 1/3;
    margin: 0;
  }
  
  #card2 {
    grid-column: 1/3;
    margin: 0;
  }
  
  #card3 {
  grid-column: 1/3;
    margin: 0;
  }
}


@media (max-width: 1000px) {
  * {
    margin: 0;
    padding: 0;
  }
  
  .grid-container {
    justify-content: center;
    margin: 0;
    width: 90%;
  }
  
  .headline {
    grid-column: 1/-1;
    margin: 0;
    justify-self: center;
  }
  
  .headline-text {
    grid-column: 1/-1;
    justify-self: center;
  }
  
  #reviews {
    grid-column: 1/-1;
    grid-row: 3;
    margin: 0;
    justify-self: center;
  }
  
  #report-guru {
    grid-column: 1/-1;
    margin: 0;
    justify-self: center;
  }
  
  #besttech {
    grid-column: 1/-1;
    margin: 0;
    justify-self: center;
  }
  
  #card1 {
    grid-column: 1/-1;
    margin: 0;
    justify-self: center;
  }
  
  #card2 {
    grid-column: 1/-1;
    margin: 0;
    justify-self: center;
  }
  
  #card3 {
  grid-column: 1/-1;
    margin: 0;
    justify-self: center;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console