Skip to content

Instantly share code, notes, and snippets.

@davidrhoden
Created November 15, 2012 17:39

Revisions

  1. davidrhoden created this gist Nov 15, 2012.
    10 changes: 10 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    $(document).ready(function(){
    var width = 740;
    console.log(width);
    $.each($('.overview img'), function(i, img) {
    width += $(img).width();
    console.log($('.overview img'), width);
    });
    $('.overview').width(width);
    console.log(width);
    });