I am having trouble reducing the horizontal spacing between the elements inside a row. My code looks like this:
<div class="row">
<div class="col s4 m4 l4">
<div class="icon">
<a href="#">
<i class="fab fa-twitter fa-2x"></i>
</a>
</div>
</div>
<div class="col s4 m4 l4">
<div class="icon">
<a href="#">
<i class="fab fa-instagram fa-2x"></i>
</a>
</div>
</div>
<div class="col s4 m4 l4">
<div class="icon">
<a href="#">
<i class="fab fa-instagram fa-2x"></i>
</a>
</div>
</div>
</div>
.icon i {
border-radius: 50px;
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
width: 50px;
height: 50px;
-webkit-transition: all 0.3s ease-in;
transition: all 0.3s ease-in;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
margin: 0 auto;
color: #ffffff;
}
So I would like to have the social buttons closer to each other. I tried decreasing the width of the row and experimented with the materialize tags but sadly nothing worked. Would appreciate some help on this issue.
Aucun commentaire:
Enregistrer un commentaire