This very simple plugin allows you to fill a html element with 1 or more image(s).
Here is a very simple demo
Here is a basic exemple
// minimum
$('.my_elements').imgfill();
Here is a full options exemple
// full options
$('.my_elements').imgfill(
{
align : 'center', // Set the alignment (center, topleft, top, topright, right, bottomright, bottom, bottomleft, left) case insensitive and shortcuts allowed (c, tl, t, tr, r, br, b, bl, l)
container : null, // Define the container class name
$container : $(window) // if you prefer, define directly the container DOM element (It will override "container" option)
});
Chrome/Firefox/Safari and IE6+
Feel free to use it, just leave my copyright.
Copyright (c) 2011 Stéphane Guigné