我如何在我的推荐页面上实现这一目标?

时间:2014-08-22 21:27:52

标签: html css testimonials

我想在报价的开头和结尾处加上引号过大的引号。目前我遇到的问题是间距太大。这是我的代码:

HTML:
<section class="testimonial">
    <span class="quote">&quot;</span>
    <p>
       Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi.
    </p>
    <div class="last">
        <span class="quote">&quot;</span>
    </div>
</section>

CSS:
/* Testimonials */
.testimonial p {
    margin: 0 12.5% 15px;
    text-align: center;
}

.quote {
    font-family: "times new roman", sans-serif;
    font-size: 5em;
    color: #CC1714;
    display: inline-block;
}

.last {
    text-align: right;
}

以下是我想要实现的目标: enter image description here

1 个答案:

答案 0 :(得分:0)

试试这个:

CSS

.testimonial p {
  display: inline-block;
  margin: 0;
  text-align: center;
}

.quote {
     font-family: "times new roman", sans-serif;
     font-size: 5em;
     color: #CC1714;
     display: inline-block;
   }

.last {
     display: inline-block;
     text-align: right;
   }