我这里有一个Bootply链接:http://www.bootply.com/XLGE6Vpjov,需要将三个圆圈居中,并且圆圈内的文本在水平和垂直方向上都居中。
如何实现垂直居中呢?
我知道在IE8中不支持border-radius属性,但是如果只在IE8下出现方形也可以接受。
如何实现垂直居中呢?
我知道在IE8中不支持border-radius属性,但是如果只在IE8下出现方形也可以接受。
<div class="container">
<div class="row">
<div class="col-md-4 block text-center">
<p class="circle">Some Text here Some text here Some text here Some text here</p>
</div>
<div class="col-md-4 block">
<p class="circle">Some Text here</p>
</div>
<div class="col-md-4 block">
<p class="circle">Some More Text here</p>
</div>
</div>
</div>
.block{
border: 1px solid red;
text-align: center;
vertical-align: middle;
}
.circle{
background: red;
border-radius: 200px;
color: white;
height: 200px;
font-weight: bold;
width: 200px;
}