0
我正在尝试将文字置于圆圈内。我正在努力使文本正确对齐(圆圈的中间)。圈内的文字未对齐html css
到目前为止,我已经试过代码为:
CSS:
.circle {
margin:auto;
border-radius: 50%;
background: rgb(0, 34, 102);
padding: 10px;
width: 110px;
height: 110px;
margin-top:1px;
color: rgb(255, 255, 255);
text-align: center;
}
HTML:
<td colSpan=2> <div class="circle"> Discuss <br> ideas and <br> projects </div> </td>
下面是结果
也许这答案可能是有益的太:) http://stackoverflow.com/questions/37373734/fully-circular-buttons-with-dynamic-size/37373838#37373838(不一个确切的复制自文字大小,所以圈大小可以改变... –