I'm fairly new to creating websites with CSS and HTML, and I'm currently working on a project about my time in China. The main issue I'm facing right now is aligning a button with my other contact icons and ensuring it scrolls correctly with the rest of the page. I came across a CSS style for the button that I really like, but I'm struggling to make it the same height as the other icons and center it horizontally. I've tried adjusting margins, but I can't seem to get it right. Changing the position just seems to mess with the scaling. If anyone could help me out with this, I'd really appreciate it. I can provide a js fiddle with the code as well.
Here is the HTML & CSS code:
.Social {
margin-top: 1%;
margin-left: 29.3%;
}
.Pop {
margin-left: 0.8%;
margin-right: 0.8%;
width: 6%;
transition: all .3s ease;
-moz-transition: all .3 ease;
-ms-transition: all .3s ease;
-webkit-transition: all .3s ease;
-o-transition: all .3s ease;
}
.Pop:hover {
-moz-transform: scale(1.1);
-webkit-transform: scale(1.1);
-o-transform: scale(1.1);
-ms-transform: scale(1.1);
transform: scale(1.1);
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=1.5, M12=0, M21=0, M22=1.5, SizingMethod='auto expand')";
filter: progid:DXImageTransform.Microsoft.Matrix(M11=1.5, M12=0, M21=0, M22=1.5, SizingMethod='auto expand');
}
.button {
background-color: #4CAF50;
/* Green */
border: none;
color: white;
margin-left: 2%;
padding: 1% 4%;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 80%;
font-family: "eraslight";
-webkit-transition-duration: 0.4s;
/* Safari */
transition-duration: 0.4s;
cursor: pointer;
}
.button5 {
background-color: white;
color: black;
border: 2px solid #555555;
}
.button5:hover {
background-color: #555555;
color: white;
}
<div class="Social">
<img alt="snap circle" class="Pop" src="https://image.ibb.co/cHB5SU/SnapPop.png">
<img alt="Insta circle" class="Pop" src="https://image.ibb.co/eOtkSU/InstaPop.png">
<img alt="Wechat circle" class="Pop" src="https://image.ibb.co/dppEMp/WePop.png">
<img alt="Linkedin circle" class="Pop" src="https://image.ibb.co/effAu9/Linkedin_Pop.png">
<img alt="Gmail circle" class="Pop" src="https://image.ibb.co/movbZ9/GmailPop.png">
<button class="button button5"><h2>Résumé</h2></button>
</div>