首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在fieldset内对齐元素

在fieldset内对齐元素
EN

Stack Overflow用户
提问于 2016-07-01 03:23:33
回答 0查看 1K关注 0票数 1

我尝试了不同的选项,以便使用不同的方法将字段集中的元素对齐,以便将标题、文本和学习更多按钮保持在同一行上。但结果仍然是负面的:Align result

这是我的代码:

代码语言:javascript
复制
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;
}
代码语言:javascript
复制
<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>

我非常感谢任何可能的建议,因为我在关于这个话题的信息中找不到任何帮助。

EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38131650

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档