title: How can i apply the total width of the container dynamically counting the total width of the children elements
body: <p>I have dynamic number of containers which again contains dynamic of children elements. I need to count the sum of the children elements and apply the total width to its parent.</p>
  
  <p>Here is the page : <a href="http://test.mosaiq-media.de/ekz/index.php?id=14" rel="nofollow">http://test.mosaiq-media.de/ekz/index.php?id=14</a></p>
  
  <p>Here i need to calculate the total width of ".m-stage--container" from its child elements ".span3, .span6, .span3".</p>
  
  <p>Now i have done a shortcut formula of taking the ".row" width using float:left. But this wont work on small resolution...because ".row" can take maximun width of the screen.</p>
  
  <pre><code>$(".content-wrapper .m-stage .row").css('float','left');
  $(".content-wrapper .m-stage").each(function(n){
      $(this).find(".m-stage--container").width($(this).find(".m-stage--container &gt; .row").width() - 10);
  });
  </code></pre>
  
  <p>Thanks in advance.</p>