I wanted to write a JavaScript (jQuery)-Function to read out the width of each child and childrens-childs to get the maxWidth of all child (and childrens-childs) from a i.e. div-element.
here my code so far:
function setBodyMinWidth(name){
var max = 0;
$(name).find('*').each(fucntion(){
var width = $(this).outerWidth(true);
if (width > max){
max = width;
}
});
$("body").css("minWidth", max+"px");
but it seems not to work.
My problem is, that in my website my float: "right";
-content is over the pagecontent if the browsers-wndow is to small.
my page is under construction online, if u need some source-code, feel free to have a look here.