I\'ve tried finding an understandable answer to this, but given up.
In order to have dymnamic content (like blog posts and images) in a hori
You can calculate the width with this one-liner, albeit a tad longer than I would have liked.
var width = $('.post').map(function(undefined, elem) { return $(elem).outerWidth(true); }).toArray().reduce(function(prev, curr) { return prev + curr; }, 0);