3つの画像を一列に並べて中央に配置しようとしています。私はそれらをすべて連続して持っているが、私はそれらを中心に置くことができない。私のグループを真ん中に持っていくための提案はありますか?私は含まれているクラスとソーシャルクラスで0を試しました。とても近くに!3枚の画像が中央に並んでいます
私のHTML:最初のことは、すべてのものをラップするのにdivクラスですが、HTMLに含まれるクラスをインクルードしようとすると何らかの理由でスタックオーバーフローが消えてしまいます。私が推薦する何
.contain {
max-width: 960px;
text-align: center;
}
.social {
position: relative;
display: inline-block;
float: left;
padding: 10px;
}
<div class="contain">
<div align="center;" class="social">
<img src="http://theinvicto.com/wp-
content/uploads/2017/12/facebook.png" alt="" width="75" height="75" />
</div>
<div align="center;" class="social">
<img src="http://theinvicto.com/wp-content/uploads/2017/12/twitter.png" alt="" width="75" height="75" />
</div>
<div align="center;" class="social">
<img src="http://theinvicto.com/wp-
content/uploads/2017/12/instagram.png" alt="" width="75" height="75" />
</div>
</div>
注: 'align'は時代遅れです。それを使わないでください。また、 ''タグでは、スラッシュを使用していないか、またはスラッシュが必要です。 – Rob