/ Published in: jQuery
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);