Is there a way to display the div width in percentage even when the image is not loaded? The image sizes are mentioned in percentage and they load dynamically, making it impossible to fix their size. How can we ensure that the div maintains the correct width even if no image is loaded?
Check out this demo for more information: http://jsfiddle.net/7LfMV/2/