/ Published in: jQuery
![](/img/icon_sav.png?v3)
For overflow-x, helpful to have total width of inner divs and set the parent. This uses jQuery 1.3.2
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//using jquery var width = 0; $('#id-of-container-element').each(function() { width += $(this).outerWidth( true ); }); //optionally set the width of the container element $('#id-of-container-element').css('width', width);
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)