I'm using jQuery to align images on an horizontal view website, but the script only works when I reload the page.
http://joliannelm.steveforest.com/edition/roux-de-service.html
The script is called just before
This is the script :
$(document).ready(function() {
var width = 0;
$('#page img').each(function() {
width += $(this).outerWidth(true);
});
$('#page').css('width', width + 50);
});
Once the page is reloaded it's OK, but if you clear the cache, it's back...
Someone knows why?? Thanks.