centering input in form mailchimp

拈花ヽ惹草 提交于 2019-12-25 16:54:32

问题


I'm having a problem with centering my input[type="submit"]. I'm using bootstrap on my website also. I tried many ways but nothing seems to work. Can someone please help me with this?

 .centerButton{
    max-width: 700px;
    text-align: center;
    position: relative;
}
.btnsubmit{
    border-radius: 5px;
    height: 60px;
    color: white;
    background-color: #60C3AD;
    border: none;
    font-family: 'Arial', sans-serif;
    font-weight: lighter;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 15px;
}

回答1:


Check with the below link you have a button at center just as you want.

http://jsfiddle.net/wmDL8/26/

<div id='toolbar'>
<div class='text-center'>
    <div class="btn">
        <input type="button" class="btn btn-default"/>

    </div>
</div>



来源:https://stackoverflow.com/questions/31672482/centering-input-in-form-mailchimp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!