get scaled width & height content before background repeat code example
Example 1: how to scale a bg image acc to size of div
/* One way */
background-size: cover;
/* Other option */
background-size: contain;
Example 2: background image height and width
.class{
background: url("../images/icons/map.png") no-repeat center center/50px 50px fixed;
}