我找到了一些问题和答案,例如Responsive CSS circles that can hold centered content和Responsive CSS / Inline divs,它们接近我所需要的,但我需要对解决方案进行一些修改。
我整理了以下代码:
css
.mission-vision-circles {
width: 200px;
height: 200px;
-webkit-border-radius: 100px 100px 100px 100px;
-moz-border-radius: 100px 100px 100px 100px;
border-radius: 100px 100px 100px 100px;
-webkit-box-shadow: 2px 2px 2px 2px #ddd;
box-shadow: 2px 2px 2px 2px #ddd;
padding: 5px;
margin: 5px;
float: left;
text-align: center;
}
.orange {
border: 0px solid #E05900;
background: #e05900;
}
.gray {
border: 0px solid #796e67;
background: #796e67;
}
.dark {
border: 0px solid #333;
background: #333;
}
.mvv-circles-text {
color: #fff;
width: 90%;
height: 90%;
margin: 25% auto 0 auto;
}<div class="mission-vision-circles gray"><p class="mvv-circles-text">Personal growth</p></div>
<div class="mission-vision-circles orange"><p class="mvv-circles-text">To see us all living our lives stretched beyond the limitations imposed by our minds.</p></div>
<div class="mission-vision-circles dark"><p class="mvv-circles-text">To share stories and experiences about reframing limiting mindsets in order to help you get out of your own way.</p> </div>首先我想做什么,然后我做了什么。
我正在为Wordpress的创世纪主题工作。我有个侧栏。在侧栏的左边,我有想要的内容
上面的代码的问题
如果有任何改善的建议,我会欣然接受。
谢谢
发布于 2013-12-05 04:17:51
您可以添加css媒体查询并控制圆圈的大小和位置。
试试这个http://jsfiddle.net/23V3w/
@media screen and (max-width: 1024px) {
your font style goes here
}
@media screen and (max-width: 950px) {
your font style goes here
}
@media screen and (max-width: 650px) {
your font style goes here
}
@media screen and (max-width: 480px) {
your font style goes here
}https://stackoverflow.com/questions/20390847
复制相似问题