Given the following CSS rule,
#block1 {
text-indent: -1000em;
background: transparent url(../images/xxx.png) no-repeat scroll center center;
width: 100px;
height: 50px;
display: inline-block;
}
Suppose an image xxx.png has a dimension of 100 pixels by 50 pixels. If I need this image displayed on # block1 to look smaller, can I just change the width and height of # block1 or do I need to first resize the image and then change the width and height of # block1 accordingly.
Thank you
source
share