I need to resize my background "Image.png" to be 112 x 22 pixels, but when I modify width
and height
, it crops the image to the size provided instead of resizing it.
How can I resize the image in CSS?
#Title-1 {
width: 148px;
height: 29px;
margin-left: 10px;
background-image: url("/pic/Image.png");
display: inline-block;
vertical-align: top;
}