PDA

View Full Version : javascript to hide a div and make another div extend to fill that place



kakkalo
18 Mar 2009, 01:47 PM
hello, i was thinking of having a site with two column which is essentially two big div. so what i want to do is have a button link on the main column so athst if you click on it the sidebar column will hide it self and will make the main column larger. so it will actually modify the css of that column. and after clicking that button again the reverse operation will happen.

can you please help me how i can approch this and what to use it. it is sort of like new veoh layout, like when you click on the large video the sidebar disappersa and the video space become larger.

thank you guys in advance.