How do I make an image smaller with CSS?

I have this page and I have users uploading an icon image for the industries and they are uploading a bigger image. I want to resize it via CSS and it’s cutting it when changing it in Firebug. To see what I mean, select “retail” from the top dropdown “Select Industry Category” and then select “General” from “Select Business Type” and you will see the oddly shaped image. It needs to be 56 pixels * 52 pixels.

Here is my HTML:

<span class="icon select-business-icon" style="background-image: url(http://posnation.com/shop_possystems/image/data/icons/retail.png);">&nbsp;</span> 

I tried in the CSS to set the width and height to the desired measurements, but all it did was truncate the image and not resize.

Leave a Comment