I am trying to add a small border to an icon.
The problem is, the image is in the top of bordered box, but I want it to display in the center. Here is what it looks like at present

My border CSS style:
div.Icon{
float:left;
border:1px #ccc solid;
padding:3px;
height:80px;
width:110px;
}
div.Icon img{
text-align:center;
}
Center the image in the div as its background.
EDIT:
…And if the image has to be dynamic, you could set the
background-imagedirectly in thestyleattribute of you element in your html.In the css, you can then just remove the path…