I created this testimonial on CodePen
I am a bit skeptical about a few things in my HTML structure. For example, I typically see testimonials enclosed in <div>
s with custom classes. In my case I used a <blockquote>
but had to overwrite a lot of rules.
Also wondering if enclosing the author in <strong>
tags was wise.
HTML
<div class="wrapper">
<blockquote>
“Such cool. Much awesome. WOW”
</blockquote>
<p class="author">
–
<strong>Doge</strong>,
<a href="#">The Moon</a>
</p>
</div>
CSS
/* == resets == */
body { margin: 0; padding: 0; }
/* == project == */
body {
background: none repeat scroll 0% 0% rgb(240, 240, 240);
color: rgb(102, 102, 102);
font-family: "Helvetica Neue", Helvetica, Arial, Sans-serif;
font-size: 22px;
}
.wrapper {
width: 600px;
margin: 24px auto;
}
blockquote {
background-color: rgb(255, 255, 255);
border-radius: 6px;
font-family: Georgia, serif;
font-size: 22px;
line-height: 1.4;
margin: 0;
padding: 17px;
}
p.author {
background-color: transparent;
font-weight: 500;
font-size: 22px;
line-height:22px;
margin: 24px 0 0 18px;
}
strong {
color: rgb(68, 68, 68);
}
a {
color: rgb(64, 131, 169);
text-decoration: none;
}