This is similar to what you might have to handle with JavaScript. Personally, I would use jQuery and something like:
$(document).ready(function() {
$(".ID_OF_IMAGE").each(function() {
this.height = Math.max(
Math.max(document.body.clientHeight, document.documentElement.clientHeight),
Math.max(document.body.offsetHeight, document.documentElement.offsetHeight),
Math.max(document.body.scrollHeight, document.documentElement.scrollHeight))
});
});
Alternatively, you can set the image as the background of a div or body and use the repeat-y css property.
body { //also works for div's
background-image:url('image.jpg');
background-repeat:repeat-y;
}
-SB
source
share