Good morning, friends,
I'm with a friend creating a website to practice our studies, but we have a big problem in these social networking buttons, we can not position this image in the center of the circles, can anyone give us a light? >
HereistheHTML/CSScode:
/REDE SOCIAL INTERATICA INICIO/ section {
margin: 10px auto;
width: 1200px;
height: 90px;
}
.rede {
width: 50px;
height: 50px;
float: right;
margin-left: 30px;
transition: all 0.4s ease-out;
border-radius: 50%;
}
.rede#facebook {
background-color: #2372a3;
}
.rede#twitter {
background-color: #0084b4;
}
.rede#instagram {
background-color: #3f729b;
}
.rede#snap {
background-color: #fc0;
}
.rede#plus {
background-color: #dd4b39;
}
.rede#youtube {
background-color: #b00;
}
.icone {
padding: 3px;
width: 3%;
position: absolute;
margin-right: 15%;
transform: translate(15%, 15%, 1%);
float: right;
}
/REDE SOCIAL FINAL/
<h1>Atari Mania</h1>
<section>
<div class="rede" id="facebook">
<img class="icone" src="imagens/facebook.png" />
</div>
<div class="rede" id="twitter">
<img class="icone" src="imagens/twitter.png" />
</div>
<div class="rede" id="instagram">
<img class="icone" src="imagens/instagram.png" />
</div>
<div class="rede" id="snap">
<img class="icone" src="imagens/snap.png" />
</div>
<div class="rede" id="plus">
<img class="icone" src="imagens/plus.png" />
</div>
<div class="rede" id="youtube">
<img class="icone" src="imagens/youtube.png" />
</div>
</section>