将段落线对齐到中心,每行减少长度

时间:2015-12-09 09:00:34

标签: html css

请建议如何将段落线与倒置的金字塔结构对齐。 I want to achieve something like this image, 到目前为止,我已经完成了

.content-detail{
     height: 90px;
     width: 570px;
     margin: 0 auto;
     display: table;
}
.content-detail p{
    font-family: vollkorn-reg;
    font-size: 18px;
    font-style: italic;
    color: #333;
    font-weight: 400;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}
<div class="content-detail">
                        <p>Duis sed odio sit amet nibh vulputate cursus a sit amet mauris. Morbi versa accumsan ipsum velit. Nam nec tellus a odio tincidunt auctor a ornare odio. Sed non mauris vitae erat consequat auctor eu in elit</p>
</div>

0 个答案:

没有答案