Skip to main content
Participating Frequently
June 25, 2021
Question

My social media buttons do not appear correctly

  • June 25, 2021
  • 1 reply
  • 943 views

I followed a YouTube video to learn how to make some cool Social Media Buttons.  I have tried copy & pasting his code, but they do not display correctly.  They have a hover feature but only the facebook one is showing the icon correctly and the colors.  Here are the sections of my code from the header and body.

<title>Social Media Icons | CodingMaker</title>
<style>

@1552174 url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
html,body{
display: grid;
height: 100%;
width: 100%;
place-items: center;
background: linear-gradient(315deg, #ffffff 0%, #d7e1ec 74%);
}
.wrapper .button{
display: inline-block;
height: 45px;
width: 45px;
float: left;
margin: 0 5px;
overflow: hidden;
background: #fff;
border-radius: 50px;
cursor: pointer;
box-shadow: 0px 10px 10px rgba(0,0,0,0.1);
transition: all 0.3s ease-out;
}
.wrapper .button:hover{
width: 200px;
}
.wrapper .button .icon{
display: inline-block;
height: 45px;
width: 45px;
text-align: center;
border-radius: 50px;
box-sizing: border-box;
line-height: 45px;
transition: all 0.3s ease-out;
}
.wrapper .button:nth-child(1):hover .icon{background: #4267B2;}

.wrapper .button:nth-child(2):hover .icon{background: #1DA1F2;}

.wrapper .button:nth-child(3):hover .icon{background: #E1306C;}

.wrapper .button .icon i{
font-size: 25px;
line-height: 50px;
transition: all 0.3s ease-out;
}
.wrapper .button:hover .icon i{
color: #fff;

.wrapper .button span{
font-size: 20px;
font-weight: 500;
line-height: 50px;
margin-left: 10px;
transition: all 0.3s ease-out;
}
.wrapper .button:nth-child(1)
span{color: #4267B2;}

.wrapper .button:nth-child(2)
span{color: #1DA1F2;}

.wrapper .button:nth-child(3)
span{color: #E1306C;}

</style>
<script src="https://kit.fontawesome.com/a076d05399.js>"></script>

******************

<div class="col-xl-2">
<div class="wrapper">
<div class="button">
<div class="icon"><i
class="fab fa-facebook-f">
</i></div>
<span>Facebook</span>
</div><br><br>


<div class="button">
<div class="icon"><i
class="fab fa-twitter">
</i></div>
<span>Twitter</span>
</div><br><br>


<div class="button">
<div class="icon"><i
class="fab fa-instagram">
</i></div>
<span>Instagram</span>
</div>

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery-3.4.1.min.js"></script>

<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/popper.min.js"></script>
<script src="js/bootstrap-4.4.1.js"></script>
<script type="text/javascript">
$(function() {
$( "#Slider1" ).slider();
});
</script>
</div></div></div></div></div>

Any guidance would be appreciated

    This topic has been closed for replies.

    1 reply

    Legend
    June 25, 2021

    You have a missing closing } -

     

    .wrapper .button:hover .icon i {

    color: #fff;

     

    Add the } and see if that corrects the issue.

    Lance5CDAAuthor
    Participating Frequently
    June 25, 2021

    So I went to add the closing, but when I opened dreamweaver, all I get is a blank page with a 1 at the top saying I need to set the document style.  I was working on my site until about 1am last night, so I am more than distressed.  Does my info sync anywhere?  Is there a way to recover my lost page?

     

    Jon Fritz
    Community Expert
    Community Expert
    June 25, 2021

    Is the file actually empty? (check the file size from your desktop to verify it's not just a DW glitch)

    Unfortunately if the file size is 0kb, unless you set up a Git Repository (you would definitely know if that was done when the site was initially created), have some kind of automated backup system set up, or uploaded the complete file to your server somewhere, you're going to be out of luck. 


    If you have a file size larger than 0kb, try opening it in Notepad, SimpleText, or some other non-DW text editor. If the html is there, restart your system to clear the glitch from DW. You should then be able to open the file.