,
I am using Jquery to add background image to a div which keeps changing on elements click.
The image is adding correctly but it is not occupying the whole div space due to smaller dimension. I would like the image to fit the div width height.
Could someone please help which property should I use to achieve this which should work on all browsers
This is the code I am using
var image_url = “url(”+_xmlUnitObj.img+“) no-repeat left top”;
$(‘#rightMenu’).css(“background”, image_url);
where _xmlUnitObj.img contains the image path
and rightMenu is the div id.