This is a discussion on "Making div to drop down when div beneath it change it's height dimension ?" within the Web Page Design section. This forum, and the thread "Making div to drop down when div beneath it change it's height dimension ? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Making div to drop down when div beneath it change it's height dimension ?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Making div to drop down when div beneath it change it's height dimension ?
OK,I will try to be as clear as possible.
I have one div (container) 500pix height containing two another divs in it. One of them is 200 height and another one that is on bottom is 300. Now if I manually change dimension of div that is on bottom to 200 pix, I want the one that is on top to get down as much as it can (so it's 100pix in this case) to the top of the one div that is on the bottom. So if you understand me I want to make the position of the div that is on the top to depends on the height dimension of the div that is on the bottom, and to always drop down to it so they touch each other. I need this for some javascript programming... Thanks |
|
|
|
#2
|
|||
|
|||
|
Re: Making div to drop down when div beneath it change it's height dimension ?
Sounds like something that can be achieved using JavaScript. I personally don't know of any way of doing it but maybe there is
|
|
#3
|
|||
|
|||
|
Re: Making div to drop down when div beneath it change it's height dimension ?
you can achieve to this by javascript, here is the sample code i have created :
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problems making the content area have a dynamic height | blizeH | Web Page Design | 41 | Aug 13th, 2007 01:19 |
| Will it slide beneath? | marksk | Web Page Design | 7 | Apr 26th, 2007 08:58 |
| how do I change the height of an <input type="text"> box? | MikeTheVike | Web Page Design | 1 | Feb 23rd, 2007 22:23 |
| Making A CSS horizontal, drop down menu | Powderhound | Web Page Design | 15 | Aug 22nd, 2006 10:42 |
| Making sure the height of both divs is = | csa | Web Page Design | 8 | May 3rd, 2006 18:22 |