0

Here is my code. HTML:

<div id="socmed">

<div id="icons"> 
    <div id="fb"></div>
</div>
</div>

CSS:

#socmed {
height: 100px;
padding-top: 70px;
padding-bottom: 50px;
background-color:rgba(247, 34, 34, 0.7);
width: 100%;
}

#icons {
width: 300px;
height: 75px;
margin: 0px auto;
}

#fb {
height: .89in;
width: .89in;
background-image:url("../images/facebook_dark.png");
}
#fb:hover {
height: .89in;
width: .89in;
background-image:url("../images/facebook_active.png");

Currently, neither logo shows up in my "socmed" div. Anyone know what I'm doing wrong? Stumped.

1 Answers1

0

check the following steps:

1.Image contains folder path (inspect the path) 2.If image size is big it won't appear full image.so it will appear partial image according the mentioned dimension.for that problem use background-size property

Take a look :DEMO

Manoj
  • 1,860
  • 1
  • 13
  • 25