私はすでに:: after要素(下)を使用しているボタンを持っていますが、divの右側にシェイプ/要素を追加します。:: before要素が右に揃えられました
a {
position: relative;
display: inline-block;
padding: 15px 10px;
margin: 0 5px;
color: #222;
font-size: 0.9em;
font-weight: 700;
}
a:after {
content: "";
position: absolute;
display: inline-block;
background-color: #d11e5d;
margin: 0 auto;
height: 3px;
width: 0;
bottom: 6px;
left: 0;
right: 0;
}
a.btn-contact::before {
background: #0c0;
content: '';
display: inline-block;
float: left;
height: 10px;
width: 10px;
position: absolute;
right: 0;
top: 0;
}
<a href="" class="btn-contact">button</a>
私はリンクの右にそれを得たが、私は、垂直右
EDITに揃えるにそれをしたい:フルCSS/HTMLの提供。 .btn接触クラスでWordpressのサイトには、ちょうど1ボタン(私は横に形状をしたい1)
を探していたものであるなら、私に知らせてあなたはあなたの残りの部分をhtml/cssに投稿できるので、あなたが現在作業しているものを見ることができますか? –
あなたの質問に正しく答えるには、両方の要素のHTML構成とCSSが必要です。 –
私はお詫び申し上げます、私は完全な内容で私の質問を更新しました – user3550879