Is it possible to use JavaScript to get the actual size (width and height in pixels) of a CSS referenced background image?
var actualImage = new Image(); actualImage.src = $('YOUR SELECTOR HERE').css('background-image').replace(/"/g,"").replace(/url\(|\)$/ig, ""); actualImage.onload = function() { width = this.width; height = this.height; }