将文本格式化为形状

时间:2013-06-17 12:23:11

标签: php css3

我需要格式化一小段文字,以便在圆圈内显示 - 例如http://stredtech.co.uk/YMD/

需要在php中完成

有什么建议吗?

1 个答案:

答案 0 :(得分:2)

Live Demo

使用此html

<div class="circleBase type6"><i>We honestly <br>
feel that whilst YMD <br>are acting on our behalf<br>
we will receive the best <br>deal for the future.</i> 
<br><br>Mr. and Mrs. C <br>Essex</div>

这是css

.type6 {
width: 200px;
height: 200px;
background: #606062;
text-align: center;
display: table-cell;
vertical-align: middle;
color: white;
}
.circleBase {
-webkit-border-radius: 999px;
-moz-border-radius: 999px;
border-radius: 999px;
}