
前提・実現したいこと
リンクを中央に配置したいのですが、左に寄ってしまいます。
該当のソースコード
html
1<a href="#" class="btn btn01">リンク</a>
css
1.btn { 2 padding: 6px 15px; 3 margin: 0 auto; 4 text-align: center; 5 font-weight: bold; 6 display: inline-block; 7 text-decoration: none !important; 8 font-size: 1.2em; 9 border-radius: 5px 10} 11.btn01 { 12 background-color: #11A9B5; 13 border: 2px solid #11A9B5; 14 color: #fff !important; 15 -webkit-box-sizing: border-box; 16 -moz-box-sizing: border-box; 17 box-sizing: border-box; 18 -webkit-transition: all .3s; 19 transition: all .3s; 20} 21.btn01:hover { 22 background-color: transparent; 23 border: 2px solid #11A9B5; 24 color: #11A9B5 !important; 25}

提示された情報だけでは回答者は再現できません。
必要最低限の情報を提示してください。

回答4件
あなたの回答
tips
プレビュー