Font Awesomeを使ってアイコン下記3点を表示しています。
3点共通のcssでは.iconで記述していますが、
2行目のa fa-gears iconのみ、
margin-top: 50px;もしくはpadding-top: 50px;を指定したく、
どのように特定すれば良いのでしょうか?
html
<span class="fas fa-seedling icon faa-float animated-hover"></span>
<span class="fa fa-gears icon faa-float animated-hover"></span>
<span class="fa fa-rocket icon faa-float animated-hover"></span>
css
.icon {
display: inline-block;
margin-top: 10px;
margin-right: 13px;
font-size: 40px;
width: 2em;
line-height: 2em;
border-radius: 50%;
text-align: center;
background-color: #DDD;
color: #fff;
float: right;
}
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/05/07 14:53