javascript - function equalHeight , set a minimum Height to apply? -


I have tried to do everything, but without javascript I do not get poor layout can !!

As you can see, I have been designated # backgr-box , which is #contenuto ( Which holds the contents of the page!) Now to resolve the extensibilty troubles of # backgr-box I have the code below which works if #contenuto's content sidebar # barra- Laterale , but in the opposite case, look at the page:

How can I tell JavaScript to implement that calculation? # barra-laterale Only a minimum height of it up sidebar ??

Need help .. please!

  function equalHeight (group) {highest height = 0; Height () - 380;}}}; Height () () () () (height = $ ("#contenuto"). Group.height (highest);} $ (document) .ready (function () {equalHeight ($ (". Column")) }};    

The problem is likely to be with this line:

  height = this heel = $ ("#contentuto") height () - 380;   

Currently both variables highest and Setting the height of content area to thisHeight height of -380 pixels. Change it here:

  highest = this hight;   

And all of these columns

Edit : This is a column in your right hand, in fact there are several columns in it, in which .barra-laterale you can do each other's best: calculate the total height of

  // and sidebar var contentHeight = $ ("#contenuto"). ; Var SideBaright = 0; $ (". Barra-laterale"). Each (function () {SidebarHite + = $ (this) .height ();}) if (SidebarHight> Content Hight) {$ ("# contenuto"). Height (SidebarHyigh); } Else {// Expand the last sidebar column to cover the difference between the height and sidebar heights of the content. Last SidebarHight = $ (". Barra-laterale") last (). Height (); Var heightDifference = contentHeight - SidebarHeight; $ ("Barra-laterale"). last (). Height (Last Sidebar Height + Height Degree)}    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -