v.1.0.0
A jQuery plugin to expand and centralize a image related to parent element independent of size him
Load jQuery and include FillBox plugin file
<!-- Include jquery -->
<script src="jquery.js"></script>
<!-- Include fillbox plugin -->
<script src="fill.box.js"></script>
You don't need any special markup. All you need is add the class ".fill-box" to any image warraped with a block (preferencially) element.
<div>
<img src="myimage.jpg" class="fill-box" />
</div>
Now just call the FillBox initializer function and tadaaaaa.
$(".fill-box").fillBox();
The MIT License (MIT)