Forum Moderators: not2easy

Message Too Old, No Replies

div resize and content hiding

         

apockle

6:24 pm on May 3, 2006 (gmt 0)

10+ Year Member



Hi,

I have a div called "BLOCK" with a fixed height.
Inside this div, there are other divs with a fixed height.
Using javascript, when you click on a button, the size of the div "BLOCK" go smaller. The problem is the fact that divs inside "BLOCK" are not masked... are always "visible"...
Do you know how to make divs inside the "BLOCK" automatically not visible / partial visible?

thanks

Moby_Dim

7:04 pm on May 3, 2006 (gmt 0)

10+ Year Member



Add to the function which is responsible for the "block" div size some code like : var div_style = document.getElementById('id_of_a_small_div').style; div_style.visibility = 'hidden'... and you'll get it.