我尝试了不同的选项,以便使用不同的方法将字段集中的元素对齐,以便将标题、文本和学习更多按钮保持在同一行上。但结果仍然是负面的:Align result
这是我的代码:
fieldset {
height: 100%;
}
fieldset.scheduler-border {
border: 2px solid #efefef !important;
border-radius: 5px;
padding: 0 1.4em 1.4em 1.4em !important;
margin: 0 0 1.5em 0 !important;
-webkit-box-shadow: 0px 0px 0px 0px #000;
box-shadow: 0px 0px 0px 0px #000;
}
legend.scheduler-border {
font-size: 0.7em !important;
font-weight: bold !important;
text-align: center !important;
width:inherit; /* Or auto */
padding:0 10px; /* To give a bit of padding on the left and right */
border-bottom:none;
vertical-align: sub;
}
.btn-devices{
text-transform: none;
background-color: #e64232;
color: white;
}<div class="col-md-4">
<fieldset class="scheduler-border">
<legend class="scheduler-border red">DEVICES</legend>
<h3>ALL DEVICES SUPORTED</h3>
<p class="desc-features">All our products are perfectly optimized for mobile, desktop and tablet.</p>
<button type="button" class="btn btn-danger btn-devices">Learn More</button>
</fieldset>
</div>
我非常感谢任何可能的建议,因为我在关于这个话题的信息中找不到任何帮助。
https://stackoverflow.com/questions/38131650
复制相似问题